[buddypress-trac] [BuddyPress] #5012: bp_nav_menu() function problems

buddypress-trac noreply at wordpress.org
Thu May 23 13:19:37 UTC 2013

#5012: bp_nav_menu() function problems
 Reporter:  therearwindow      |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Core               |     Version:  1.7
 Severity:  normal             |  Resolution:  invalid
 Keywords:  reporter-feedback  |
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


 Thanks for the feedback, therearwindow.

 I've done some digging into the way that `bp_nav_menu()` works. It looks
 like you are trying to use it in a way it's not designed to be used. It
 gets its nav items using `bp_get_nav_menu_items()`, which fetches menu
 items from `$bp->bp_options_nav`. As things currently stand in BuddyPress,
 `bp_options_nav` is built by each component on each pageload, and is very
 context-specific. Thus, for the same user, the options nav will be
 different when looking at one's own profile, vs when looking at another
 person's profile, vs looking at a group page, etc.

 This is a design limitation in the current implementation. In the long
 run, it would be great for `bp_nav_menu()` (or something like it) to be
 able to output, say, the current user's main nav menu, and to do it on any
 page of a BP installation. But at the moment, the function (and our entire
 menu system) is not designed to be context-independent in this way.

 I'm going to close this ticket as invalid, because it's not really a bug
 so much as the way things work. If you would like to see a context-
 independent user menu function in BP, please feel free to open an
 enhancement ticket, and describe in detail what items you think
 would/should appear on that menu. Thanks!

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5012#comment:3>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list