[buddypress-trac] [BuddyPress Trac] #7131: BP_Group_Extension->widget_diplay() is never reachable

buddypress-trac noreply at wordpress.org
Mon Jun 20 12:16:59 UTC 2016


#7131: BP_Group_Extension->widget_diplay() is never reachable
--------------------------+-----------------------
 Reporter:  imath         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  2.7
Component:  Groups        |    Version:
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 The action added to 'groups_custom_group_boxes' that calls the Group Class
 `widget_display` method is inside an if statement that is always false.
 See below

 {{{
 if ( ! bp_current_action() && bp_is_current_action( 'home' ) ) {}
 }}}

 It's not possible for the current action to be home and nothing at the
 same time :)

 So i'd suggest to use the `bp_is_group_home()` template tag instead, to
 give it a chance to be used in case the theme is using the
 `bp_custom_group_boxes()` template tag.

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


More information about the buddypress-trac mailing list