Opened 13 years ago
Closed 13 years ago
#3738 closed defect (bug) (fixed)
Plugin dependency and core API usage
Reported by: | johnjamesjacoby | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 1.6 | Priority: | normal |
Severity: | normal | Version: | 1.5 |
Component: | Core | Keywords: | |
Cc: |
Description
There are lots of areas where BuddyPress does not have an action to ride on-top of a WordPress action. This coupled with each component referencing the $bp global on inclusion without a failsafe hook inhibit BuddyPress from being properly manipulated and overridden.
This coupled with the fact that BuddyPress does not use its own API's (but instead references its global everywhere) makes for a poor developer experience and steepens the learning curve.
Use this as a master ticket for API clean-up for the 1.6 release.
(In [5300]) Attach component creation to 'bp_setup_component' action. Clean up bp-core-hooks.php and include new 'bp_setup_component' hook. Fixes issue with $bp reference in global scope in each component. See #3738.