WP Admin Bar - Cannot arrange "My Account" items
|Reported by:||r-a-y||Owned by:||r-a-y|
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):
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.