Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/23/2021 02:27:58 PM (3 years ago)
Author:
dcavins
Message:

Improve behavior of bp_init_group_extensions().

In r13101, the behavior of bp_register_group_extension()
was changed to make it possible to modify the behavior via
plugins. However, the same code in a new place behaved
differently, only fully registering the last group extension that
was passed to it. This commit stops passing the group
extension classes by reference, which fixes the issue.

See #8558.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-functions.php

    r13185 r13195  
    36743674        $extension = new $group_extension_class;
    36753675
    3676         add_action( 'bp_actions', array( &$extension, '_register' ), 8 );
    3677         add_action( 'admin_init', array( &$extension, '_register' ) );
     3676        add_action( 'bp_actions', array( $extension, '_register' ), 8 );
     3677        add_action( 'admin_init', array( $extension, '_register' ) );
    36783678    }
    36793679}
Note: See TracChangeset for help on using the changeset viewer.