Skip to:
Content

BuddyPress.org

Changeset 12240


Ignore:
Timestamp:
09/20/2018 09:21:05 PM (6 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 (trunk)

File:
1 edited

Legend:

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

    r12204 r12240  
    445445            }
    446446
    447             if ( 'groups' === $object ) {
    448                 $supported_objects = array_merge( $supported_objects, array( 'group_members', 'group_requests' ) );
    449             }
    450 
    451447            $object_nonces[ $object ] = wp_create_nonce( 'bp_nouveau_' . $object );
     448        }
     449
     450        // Groups require some additional objects.
     451        if ( bp_is_active( 'groups' ) ) {
     452            $supported_objects = array_merge( $supported_objects, array( 'group_members', 'group_requests' ) );
    452453        }
    453454
Note: See TracChangeset for help on using the changeset viewer.