[buddypress-trac] [BuddyPress] #3769: WP Admin Bar - Cannot arrange "My Account" items

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Nov 25 19:20:47 UTC 2011


#3769: WP Admin Bar - Cannot arrange "My Account" items
--------------------------+-----------------------------
 Reporter:  r-a-y         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.5.1
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 If you register a new subnav item under "My Account", you can only
 position it above the current My Account items or below them.

 This is because 'bp_setup_admin_bar' action in the core BP_Component class
 fires all hooks at the same priority):
 http://buddypress.trac.wordpress.org/browser/tags/1.5.1/bp-core/bp-core-
 component.php#L221

 A proposed solution involves removing the "bp_setup_admin_bar" hook from
 the core BP_Component class and adding it in each component's
 setup_actions.

 Attached is a patch showing how this could be done with the friends
 component.  It's hooked at a priority of 30 as an example.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3769>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list