[buddypress-trac] [BuddyPress Trac] #8464: Nouveau should check the component is active before trying to use a `bp_get_{component}_slug()` function

buddypress-trac noreply at wordpress.org
Tue Apr 27 06:59:29 UTC 2021


#8464: Nouveau should check the component is active before trying to use a
`bp_get_{component}_slug()` function
--------------------------+---------------------
 Reporter:  imath         |       Owner:  imath
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  8.0.0
Component:  Templates     |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by imath):

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


Comment:

 In [changeset:"12908" 12908]:
 {{{
 #!CommitTicketReference repository="" revision="12908"
 BP Nouveau: introduce a function to get active component slugs

 `bp_nouveau_get_component_slug()` accepts the component's ID as an
 argument and uses the `bp_get_{$component_id}_slug()` corresponding
 function to get its slug only if the component is active.

 Replace all occurences of `bp_get_{$component_id}_slug()` by
 `bp_nouveau_get_component_slug( $component_id )` to prevent errors.

 Fixes #8464
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8464#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list