[buddypress-trac] [BuddyPress Trac] #6217: Subnav items: Optional?
buddypress-trac
noreply at wordpress.org
Thu Feb 12 14:19:50 UTC 2015
#6217: Subnav items: Optional?
------------------------------+-----------------------------
Reporter: henry.wright | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Component - Core | Version:
Severity: normal | Keywords:
------------------------------+-----------------------------
The second param in {{{BP_Component::setup_nav()}}} is noted in the method
comments as being optional but when I try to pass just {{{$main_nav}}}
like in the example below, my main nav item isn't added to the navigation.
{{{
class BP_My_Component extends BP_Component {
function setup_nav() {
// Stuff.
parent::setup_nav( $main_nav );
}
}
}}}
When I visit the page I get a 404. For example:
{{{http://example.com/members/username/my-main-nav-item}}}
Ref: https://github.com/buddypress/BuddyPress/blob/master/src/bp-core/bp-
core-component.php#L408
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6217>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list