Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

#3738 closed defect (bug) (fixed)

Plugin dependency and core API usage

Reported by: johnjamesjacoby's profile johnjamesjacoby Owned by: johnjamesjacoby's profile 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.

Change History (4)

#1 @johnjamesjacoby
13 years ago

(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.

#2 @johnjamesjacoby
13 years ago

(In [5301]) Use bp_displayed_user_id() rather than reference the $bp->displayed_user->id global var directly. First step at consolidating user ID checks to use WP_User class later. See #3738.

#3 @johnjamesjacoby
13 years ago

(In [5302]) Use bp_loggedin_user_id() rather than reference the $bp->logged_user->id global var directly. Second step at consolidating user ID checks to use WP_User class later. See #3738.

#4 @johnjamesjacoby
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5758]) Clean up $bp->current_component, $bp->current_action, and $bp->current_item usage. Fixes #3738.

Note: See TracTickets for help on using tickets.