Opened 12 years ago
Closed 9 years ago
#6217 closed defect (bug) (no action required)
Subnav items: Optional?
| Reported by: | henry.wright | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | |
| Severity: | normal | Keywords: | needs-patch |
| Cc: |
Description
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
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I'm almost positive I opened a ticket just like this one in the past 12 months, but I can't find it. Yes, let's fix it :)