Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/03/2018 08:53:09 PM (6 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-blogs/bp-blogs-functions.php

    r12180 r12304  
    130130
    131131        // Omit root blog if large network
    132         if ( wp_is_large_network( 'users' ) ) {
     132        if ( bp_is_large_install() ) {
    133133            $sql['omit_root_blog'] = $wpdb->prepare( "AND blog_id != %d", bp_get_root_blog_id() );
    134134        }
Note: See TracChangeset for help on using the changeset viewer.