Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure the buddypress()->active_components global lists all active components. #126

Closed
wants to merge 1 commit into from

Conversation

imath
Copy link
Member

@imath imath commented Jul 9, 2023

It shouldn't be something Plugins/Add-ons need to set.

Trac ticket: https://buddypress.trac.wordpress.org/ticket/8933


This Pull Request is for code review only. Please keep all other discussion in the BuddyPress Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the WordPress Core Handbook for more details.

imath added a commit to imath/bp-custom-addon that referenced this pull request Jul 9, 2023
@imath imath deleted the patch/8933 branch July 10, 2023 05:20
dcavins pushed a commit to dcavins/buddypress-wp-svn that referenced this pull request Jul 28, 2023
So far this global was only retrieving the list of built-in components that were activated from the BP Components settings screen of the WordPress Dashboard. Third party plugins/add-ons to be in this list needed to add their own component ID to it using this kind of code `buddypress()->active_components['component_id'] = 1`.

BuddyPress is now making sure any active components are listed into the `buddypress()->active_components`.

Fixes #8933
Closes buddypress/buddypress#126



git-svn-id: http://buddypress.svn.wordpress.org/trunk@13513 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant