Skip to:
Content

BuddyPress.org

Ticket #5745: 5745.patch

File 5745.patch, 786 bytes (added by johnjamesjacoby, 5 years ago)

Move overzealous constant check

  • admin/bp-core-schema.php

     
    491491function bp_core_upgrade_signups() {
    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';
    496501
  • bp-core-update.php

     
    425425 * @return bool If signups table exists
    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
    436430        // The table to run queries against