Make WordPress Core

Changeset 19798


Ignore:
Timestamp:
01/31/2012 05:45:22 PM (12 years ago)
Author:
ryan
Message:

Drop the blog_id column from the options table during upgrade. Props barry. fixes #17188

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/upgrade.php

    r19786 r19798  
    460460        upgrade_330();
    461461
     462    if ( $wp_current_db_version < 19793 )
     463        upgrade_340();
     464
    462465    maybe_disable_automattic_widgets();
    463466
     
    12141217}
    12151218
     1219/**
     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   
    12161232/**
    12171233 * Execute network level changes
  • trunk/wp-includes/version.php

    r19793 r19798  
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 19793;
     14$wp_db_version = 19798;
    1515
    1616/**
Note: See TracChangeset for help on using the changeset viewer.