Skip to:
Content

BuddyPress.org

Changeset 8565


Ignore:
Timestamp:
07/09/2014 01:25:36 PM (5 years ago)
Author:
johnjamesjacoby
Message:

Move DO_NOT_UPGRADE_GLOBAL_TABLES check from bp_core_maybe_install_signups() to bp_core_upgrade_signups(). Fixes bug where wp_signups table would not get created on single-site installations when DO_NOT_UPGRADE_GLOBAL_TABLES is set. Fixes #5745.

Location:
trunk/src/bp-core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-schema.php

    r8563 r8565  
    492492    global $wpdb;
    493493
     494    // Bail if global tables should not be upgraded
     495    if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
     496        return;
     497    }
     498
    494499    // Never use bp_core_get_table_prefix() for any global users tables
    495500    $wpdb->signups = $wpdb->base_prefix . 'signups';
  • trunk/src/bp-core/bp-core-update.php

    r8315 r8565  
    426426 */
    427427function bp_core_maybe_install_signups() {
    428 
    429     // Bail if we are explicitly not upgrading global tables
    430     if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
    431         return false;
    432     }
    433 
    434428    global $wpdb;
    435429
Note: See TracChangeset for help on using the changeset viewer.