Skip to:

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#7110 closed defect (bug) (fixed)

bp_nav_menu() parent menu items have invalid URLs

Reported by: johnjamesjacoby's profile johnjamesjacoby Owned by: boonebgorges's profile boonebgorges
Milestone: 2.6 Priority: normal
Severity: major Version:
Component: Navigation Keywords:


When calling bp_nav_menu() the parent menu items only include the slug, so you end up with:


I have a hunch this is related to r10745, #6534, and #4624, and bp_get_nav_menu_items(), but I ran out of time to troubleshoot further.

Change History (3)

#1 @boonebgorges
8 years ago

  • Keywords needs-patch removed
  • Owner changed from imath to boonebgorges
  • Status changed from new to assigned

Thanks for the ticket.

The problem was indeed introduced in [10745], with a mistyped variable name in bp_get_nav_menu_items().

#2 @boonebgorges
8 years ago

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

In 10874:

Use correct 'link' for top-level items in bp_get_nav_menu_items().

The incorrect variable name was used when the new nav system was introduced
in [10745]. See #6534.

Fixes #7110.

#3 @ShresthaRaaz
8 years ago

  • Priority changed from high to normal


@boonebgorges @johnjamesjacoby

I have use BuddyPress version 2.7.2 at WordPress 4.6.1.

In bp-core-template.php some link bugs line no: 3581 while calling bp_nav_menu().

It's correct while using $menu->link = $nav_menu->link;

So can you please suggest me correct code on this section.

Sorry for bad english

Best Regards

Version 2, edited 8 years ago by ShresthaRaaz (previous) (next) (diff)
Note: See TracTickets for help on using tickets.