[buddypress-trac] [BuddyPress Trac] #6859: WP Admin Bar - Sort "My Account" subnav items

buddypress-trac noreply at wordpress.org
Mon Feb 1 05:35:49 UTC 2016

#6859: WP Admin Bar - Sort "My Account" subnav items
 Reporter:  r-a-y                       |      Owner:
     Type:  enhancement                 |     Status:  new
 Priority:  normal                      |  Milestone:  2.5
Component:  General - Toolbar/BuddyBar  |    Version:  1.5.1
 Severity:  normal                      |   Keywords:  has-patch
 This is a follow-up to #3769.

 The BuddyBar allows plugins to register subnav menus with a `'position'`
 key, however the WP Admin Bar does not.  Currently, plugins have to do
 some tomfoolery with `array_splice()` in order to register their subnav at
 a preferred position.  Let's rectify this!

 Attached patch allows plugins to simply use a `'position'` key just like
 the BuddyBar when registering a WP Admin Bar subnav.  For existing plugins
 using `array_splice()` to position their admin subnav item, the code in
 `bp-core-component.php` does some `'position'` key backfilling, so if a
 plugin isn't using the new `'position'` key, their admin subnav should
 still display at their rightful place.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6859>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list