Skip to content

Problem with define() in bfc-functions.php ... and a fix #107

@rgilman

Description

@rgilman

While using the console to better understand #106, I discovered that define('BP_DEFAULT_COMPONENT', 'profile' );on line 13 was throwing a "redefine" warning. I've moved define('BP_DEFAULT_COMPONENT', 'profile' ); into /wp-content/plugins/bp-custom.php – the recommended place since it loads earlier than bfc-functions.php – and all is well. I recommend you do the same.

Since bp-custom.php isn't in our repo, here's the code that I have in that file:

<?php
define('BP_DEFAULT_COMPONENT', 'profile' );

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions