Opened 3 years ago
Closed 3 years ago
#9009 closed defect (bug) (fixed)
Dynamic BP Member Nav items & the legacy URL parser
| Reported by: | imath | Owned by: | imath |
|---|---|---|---|
| Priority: | normal | Milestone: | 12.0.0 |
| Component: | Members | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
When BP Classic is active it brings back the BP Legacy URL parser. In this case added Dynamic BP Member Nav items to a WordPress menu is only shown when viewing a member's page.
To view Dynamic BP Member Nav items for the logged in User it's now required to set the BP_Core_Nav()->object_id property to it inside the BP Members Component class (it defaults to the displayed user ID).
Note to self: give props to @emaralive & @awol for insisting about this issue 👍
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Initialize the BP_Core_Nav object with a user ID, by default the logged in one. Use the displayed user ID if available.
Trac ticket: https://buddypress.trac.wordpress.org/ticket/9009