WordPress.org

Make WordPress Core

Ticket #19935: 19935.2.diff

File 19935.2.diff, 1.7 KB (added by ryan, 6 years ago)
  • wp-includes/version.php

     
    1111 *
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 19798;
     14$wp_db_version = 19799;
    1515
    1616/**
    1717 * Holds the TinyMCE version
  • wp-admin/includes/upgrade.php

     
    459459        if ( $wp_current_db_version < 19389 )
    460460                upgrade_330();
    461461
    462         if ( $wp_current_db_version < 19793 )
     462        if ( $wp_current_db_version < 19799 )
    463463                upgrade_340();
    464464
    465465        maybe_disable_automattic_widgets();
     
    12241224function upgrade_340() {
    12251225        global $wp_current_db_version, $wpdb;
    12261226
    1227         $wpdb->hide_errors();
    1228         $wpdb->query( "ALTER TABLE $wpdb->options DROP COLUMN blog_id" );
    1229         $wpdb->show_errors();
    1230 }       
    1231        
     1227        if ( $wp_current_db_version < 19798 ) {
     1228                $wpdb->hide_errors();
     1229                $wpdb->query( "ALTER TABLE $wpdb->options DROP COLUMN blog_id" );
     1230                $wpdb->show_errors();
     1231        }
     1232}
     1233
    12321234/**
    12331235 * Execute network level changes
    12341236 *
  • wp-admin/includes/schema.php

     
    103103  comment_parent bigint(20) unsigned NOT NULL default '0',
    104104  user_id bigint(20) unsigned NOT NULL default '0',
    105105  PRIMARY KEY  (comment_ID),
    106   KEY comment_approved (comment_approved),
    107106  KEY comment_post_ID (comment_post_ID),
    108107  KEY comment_approved_date_gmt (comment_approved,comment_date_gmt),
    109108  KEY comment_date_gmt (comment_date_gmt),