Skip to:
Content

BuddyPress.org

Ticket #6940: 6940.01-multisite-check.patch

File 6940.01-multisite-check.patch, 650 bytes (added by r-a-y, 9 years ago)
  • src/bp-core/admin/bp-core-admin-functions.php

     
    231231         * Check to make sure that the blog setup routine has run. This can't
    232232         * happen during the wizard because of the order which the components
    233233         * are loaded.
     234         *
     235         * Do this only on multisite installs.
    234236         */
    235         if ( bp_is_active( 'blogs' ) ) {
     237        if ( bp_is_active( 'blogs' ) && is_multisite() ) {
    236238                $bp    = buddypress();
    237239                $count = $wpdb->get_var( "SELECT COUNT(*) FROM {$bp->blogs->table_name}" );
    238240