Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/27/2016 03:07:47 AM (9 years ago)
Author:
imath
Message:

Groups: Make sure BP_Group_Extension::widget_display() can be used

On the single item home (eg: a custom front template), it will now be possible to use bp_custom_group_boxes() to get the content provided by the Group extensions in their widget.

2 unit tests are checking this only happens when on the Groups single item home.

Fixes #7131

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-group-extension.php

    r10745 r10905  
    764764
    765765        // Hook the group home widget.
    766         if ( ! bp_current_action() && bp_is_current_action( 'home' ) ) {
     766        if ( bp_is_group_home() ) {
    767767            add_action( $this->display_hook, array( &$this, 'widget_display' ) );
    768768        }
Note: See TracChangeset for help on using the changeset viewer.