Skip to:
Content

BuddyPress.org

Changeset 12239


Ignore:
Timestamp:
09/20/2018 09:20:48 PM (3 years ago)
Author:
r-a-y
Message:

Nouveau: Fix AJAX loading of group members page when the Activity and Notification components are disabled.

Problem was due to the way the required group objects were not being
initialized properly.

Props brianbws.

Fixes #7969 (3.x-branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/src/bp-templates/bp-nouveau/buddypress-functions.php

    r12205 r12239  
    437437            }
    438438
    439             if ( 'groups' === $object ) {
    440                 $supported_objects = array_merge( $supported_objects, array( 'group_members', 'group_requests' ) );
    441             }
    442 
    443439            $object_nonces[ $object ] = wp_create_nonce( 'bp_nouveau_' . $object );
     440        }
     441
     442        // Groups require some additional objects.
     443        if ( bp_is_active( 'groups' ) ) {
     444            $supported_objects = array_merge( $supported_objects, array( 'group_members', 'group_requests' ) );
    444445        }
    445446
Note: See TracChangeset for help on using the changeset viewer.