Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/22/2011 02:29:51 PM (13 years ago)
Author:
boonebgorges
Message:

Check for is_multisite() before checking for Blogs component tables, in case someone has manually disabled MS after having it enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-functions.php

    r4770 r4797  
    339339    /**
    340340     * Check to make sure that the blog setup routine has run. This can't happen during the
    341      * wizard because of the order which the components are loaded
     341     * wizard because of the order which the components are loaded. We check for multisite here
     342     * on the off chance that someone has activated the blogs component and then disabled MS
    342343     */
    343     if ( bp_is_active( 'blogs' ) ) {
     344    if ( is_multisite() && bp_is_active( 'blogs' ) ) {
    344345        $count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$bp->blogs->table_name}" ) );
    345346
Note: See TracChangeset for help on using the changeset viewer.