WordPress.org

Make WordPress Core

Ticket #17188: 17188.patch

File 17188.patch, 787 bytes (added by barry, 6 years ago)
  • wp-admin/includes/upgrade.php

     
    459459        if ( $wp_current_db_version < 19389 )
    460460                upgrade_330();
    461461
     462        if ( $wp_current_db_version < 19793 )
     463                upgrade_340();
     464
    462465        maybe_disable_automattic_widgets();
    463466
    464467        update_option( 'db_version', $wp_db_version );
     
    12141217}
    12151218
    12161219/**
     1220 * Execute changes made in WordPress 3.4.
     1221 *
     1222 * @since 3.4.0
     1223 */
     1224function upgrade_340() {
     1225        global $wp_current_db_version, $wpdb;
     1226
     1227        $wpdb->hide_errors();
     1228        $wpdb->query( "ALTER TABLE $wpdb->options DROP COLUMN blog_id" );
     1229        $wpdb->show_errors();
     1230}       
     1231       
     1232/**
    12171233 * Execute network level changes
    12181234 *
    12191235 * @since 3.0.0