[buddypress-trac] [BuddyPress] #4212: bp_get_button() does not allow a core component button (regression)

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun May 20 18:05:47 UTC 2012


#4212: bp_get_button() does not allow a core component button (regression)
--------------------------+-----------------------------
 Reporter:  johnbillion   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  1.5
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 The `bp_get_button()` function (and corresponding `BP_Button` class
 constructor) accepts a 'component' item in its array of arguments.

 Before the button is built, `bp_is_active()` is called to check if the
 required component is active. If you don't specify a component, it
 defaults to 'core', but `bp_is_active( 'core' )` always returns false, so
 a core component button will never be shown.

 Note that this is a regression. At BuddyPress 1.2.9, `bp_is_active( 'core'
 )` would return true and core buttons would work fine. At some point
 between 1.2.9 and 1.5, this changed and broke.

 Marking as 1.5, may affect earlier versions.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4212>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list