Skip to:
Content

BuddyPress.org

#9009 closed defect (bug) (fixed)

Dynamic BP Member Nav items & the legacy URL parser

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 12.0.0 Priority: normal
Severity: normal Version:
Component: Members 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)

This ticket was mentioned in PR #177 on buddypress/buddypress by @imath.


14 months ago
#1

  • Keywords has-patch added; needs-patch removed

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

#2 @imath
14 months ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 13618:

Make sure to initialize BP_Core_Nav with a user ID

  • By default use the logged in ID.
  • Use the displayed user ID if available.
  • Update 12.0.0 credits.

Props emaralive, awol

Closes https://github.com/buddypress/buddypress/pull/177
Fixes #9009
See #9002

Note: See TracTickets for help on using tickets.