Make WordPress Core

Ticket #31071: 31071.diff

File 31071.diff, 897 bytes (added by wonderboymusic, 9 years ago)
  • src/wp-admin/includes/upgrade.php

     
    527527        // Don't harsh my mellow. upgrade_430() must be called before
    528528        // upgrade_420() to catch bad comments prior to any auto-expansion of
    529529        // MySQL column widths.
    530         if ( $wp_current_db_version < 32364 )
     530        if ( $wp_current_db_version < 32453 )
    531531                upgrade_430();
    532532
    533533        if ( $wp_current_db_version < 31351 )
     
    14491449function upgrade_430() {
    14501450        global $wp_current_db_version, $wpdb;
    14511451
     1452        if ( $wp_current_db_version < 32453 ) {
     1453                $wpdb->query( "ALTER TABLE $wpdb->posts ADD INDEX type_mime(post_type,post_mime_type)" );
     1454        }
     1455
    14521456        if ( $wp_current_db_version < 32364 ) {
    14531457                $content_length = $wpdb->get_col_length( $wpdb->comments, 'comment_content' );
    14541458