[buddypress-trac] [BuddyPress Trac] #8133: Broken dropdown filter on friends page with a custom friends slug

buddypress-trac noreply at wordpress.org
Sun Apr 18 10:18:12 UTC 2021

#8133: Broken dropdown filter on friends page with a custom friends slug
 Reporter:  mattneil          |       Owner:  imath
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  8.0.0
Component:  Templates         |     Version:  3.0.0
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
Changes (by imath):

 * status:  assigned => closed
 * resolution:   => fixed


 In [changeset:"12892" 12892]:
 #!CommitTicketReference repository="" revision="12892"
 Nouveau: improve the way customizable slugs are handled

 BuddyPress uses constants such as `BP_FRIENDS_SLUG` to let advanced users
 customize component URL slugs. The Nouveau template pack was wrongly
 checking hardcoded component names at various places into its code, in
 particular into the following functions and template tags:

 - `bp_nouveau_current_object()`
 - `bp_nouveau_filter_options()`
 - `bp_nouveau_wrapper()`

 This commit also introduces a new BP Core function to get the active BP
 Component objects: `bp_core_get_active_components()`. The `$args` argument
 can be used to filter the active components according to their slugs,
 names, ids or root slugs. Nouveau uses it to determine the component ID
 out of its slug and use this component ID instead of slugs to create its
 needed dynamic selectors, classes and data attributes.

 Props mattneil

 Fixes #8133

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8133#comment:6>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list