Opened 10 years ago
Closed 8 years ago
#6217 closed defect (bug) (no action required)
Subnav items: Optional?
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Core | 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)
#1
@
10 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
Note: See
TracTickets for help on using
tickets.
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 :)