Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/03/2018 08:53:09 PM (3 years ago)
Author:
boonebgorges
Message:

Introduce bp_is_large_install() and use throughout BuddyPress.

This checks provides a fallback that is not dependent on Multisite, and
helps prevent a fatal error introduced in [12241]. See #7980.

Merges [12303] to the 4.0 branch.

Props shanebp, dcavins, johnjamesjacoby.
Fixes #8012.

Location:
branches/4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.0

    • Property svn:mergeinfo changed
      /trunk (added)merged: 12303
  • branches/4.0/src/bp-groups/bp-groups-admin.php

    r12241 r12304  
    862862 */
    863863function bp_groups_admin_edit_metabox_add_new_members( $item ) {
    864     if ( wp_is_large_network( 'users' ) ) {
     864    if ( bp_is_large_install() ) {
    865865        $class  = '';
    866866        $notice = __( 'Enter a comma-separated list of user logins.', 'buddypress' );
     
    12531253
    12541254    // Bail if user user shouldn't be here, or is a large network.
    1255     if ( ! bp_current_user_can( 'bp_moderate' ) || ( is_multisite() && wp_is_large_network( 'users' ) ) ) {
     1255    if ( ! bp_current_user_can( 'bp_moderate' ) || bp_is_large_install() ) {
    12561256        wp_die( -1 );
    12571257    }
Note: See TracChangeset for help on using the changeset viewer.