Make WordPress Core

Ticket #31071: 31071-fix-wp_enqueue_media-performance.patch

File 31071-fix-wp_enqueue_media-performance.patch, 1.4 KB (added by tha_sun, 9 years ago)
  • src/wp-admin/includes/schema.php

     
    187187  KEY post_name (post_name($max_index_length)),
    188188  KEY type_status_date (post_type,post_status,post_date,ID),
    189189  KEY post_parent (post_parent),
    190   KEY post_author (post_author)
     190  KEY post_author (post_author),
     191  KEY post_type_mime_type (post_type, post_mime_type(10))
    191192) $charset_collate;\n";
    192193
    193194        // Single site users table. The multisite flavor of the users table is handled below.
  • src/wp-includes/media.php

     
    32133213        " );
    32143214        $months = $wpdb->get_results( $wpdb->prepare( "
    32153215                SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
    3216                 FROM $wpdb->posts
     3216                FROM $wpdb->posts IGNORE INDEX (post_type_mime_type)
    32173217                WHERE post_type = %s
    32183218                ORDER BY post_date DESC
    32193219        ", 'attachment' ) );
  • src/wp-includes/version.php

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