Make WordPress Core

Ticket #26858: 26858.diff

File 26858.diff, 1.8 KB (added by pento, 12 years ago)
  • src/wp-admin/includes/schema.php

     
    9898  comment_parent bigint(20) unsigned NOT NULL default '0',
    9999  user_id bigint(20) unsigned NOT NULL default '0',
    100100  PRIMARY KEY  (comment_ID),
    101   KEY comment_post_ID (comment_post_ID),
     101  KEY comment_post_ID_content (comment_post_ID, comment_content(255)),
    102102  KEY comment_approved_date_gmt (comment_approved,comment_date_gmt),
    103103  KEY comment_date_gmt (comment_date_gmt),
    104104  KEY comment_parent (comment_parent)
  • src/wp-admin/includes/upgrade.php

     
    411411        if ( $wp_current_db_version < 26691 )
    412412                upgrade_380();
    413413
     414        if ( $wp_current_db_version < 26692 )
     415                upgrade_390();
     416
    414417        maybe_disable_link_manager();
    415418
    416419        maybe_disable_automattic_widgets();
     
    12511254                deactivate_plugins( array( 'mp6/mp6.php' ), true );
    12521255        }
    12531256}
     1257
    12541258/**
     1259 * Execute changes made in WordPress 3.9.0.
     1260 *
     1261 * @since 3.9.0
     1262 */
     1263function upgrade_390() {
     1264        global $wp_current_db_version, $wpdb;
     1265        if ( $wp_current_db_version < 26692 ) {
     1266                drop_index( $wpdb->comments, 'comment_post_ID' );
     1267        }
     1268}
     1269
     1270/**
    12551271 * Execute network level changes
    12561272 *
    12571273 * @since 3.0.0
  • src/wp-includes/version.php

     
    1111 *
    1212 * @global int $wp_db_version
    1313 */
    14 $wp_db_version = 26691;
     14$wp_db_version = 26692;
    1515
    1616/**
    1717 * Holds the TinyMCE version