CARVIEW |
Select Language
HTTP/2 200
server: nginx
date: Sat, 11 Oct 2025 06:57:24 GMT
content-type: text/html;charset=utf-8
vary: Accept-Encoding
etag: W/"anonymous/Wed, 23 Jul 2025 14:44:42 GMT/False"
cache-control: must-revalidate
expires: Fri, 01 Jan 1999 00:00:00 GMT
alt-svc: h3=":443"; ma=86400
strict-transport-security: max-age=31536000
x-frame-options: SAMEORIGIN
content-encoding: gzip
patch-50161-new-index.diff on Ticket #50161 – Attachment
– WordPress Trac
Ticket #50161: patch-50161-new-index.diff
File patch-50161-new-index.diff, 1.9 KB (added by josephscott, 3 months ago) |
---|
type_status_author index |
-
src/wp-admin/includes/schema.php
diff --git a/src/wp-admin/includes/schema.php b/src/wp-admin/includes/schema.php index 525aaea337..a794d9a4a2 100644
a b CREATE TABLE $wpdb->posts ( 184 184 KEY post_name (post_name($max_index_length)), 185 185 KEY type_status_date (post_type,post_status,post_date,ID), 186 186 KEY post_parent (post_parent), 187 KEY post_author (post_author) 187 KEY post_author (post_author), 188 KEY type_status_author (post_type,post_status,post_author) 188 189 ) $charset_collate;\n"; 189 190 190 191 // Single site users table. The multisite flavor of the users table is handled below. -
src/wp-admin/includes/upgrade.php
diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index 95f090af9f..782454969c 100644
a b function upgrade_all() { 886 886 upgrade_682(); 887 887 } 888 888 889 if ( $wp_current_db_version < 60498 ) { 890 upgrade_690(); 891 } 892 889 893 maybe_disable_link_manager(); 890 894 891 895 maybe_disable_automattic_widgets(); … … function upgrade_682() { 2480 2484 } 2481 2485 } 2482 2486 2487 /** 2488 * Executes changes made in WordPress 6.9.0. 2489 * 2490 * @ignore 2491 * @since 6.9.0 2492 * 2493 * @global int $wp_current_db_version The old (current) database version. 2494 * @global wpdb $wpdb WordPress database abstraction object. 2495 */ 2496 function upgrade_690() { 2497 global $wp_current_db_version, $wpdb; 2498 2499 if ( $wp_current_db_version < 60498 ) { 2500 $wpdb->query( "ALTER TABLE $wpdb->posts ADD INDEX type_status_author (post_type,post_status,post_author)" ); 2501 } 2502 } 2503 2483 2504 /** 2484 2505 * Executes network-level upgrade routines. 2485 2506 * -
src/wp-includes/version.php
diff --git a/src/wp-includes/version.php b/src/wp-includes/version.php index 4d2ffd11f2..3e53dff152 100644
a b $wp_version = '6.9-alpha-60093-src'; 23 23 * 24 24 * @global int $wp_db_version 25 25 */ 26 $wp_db_version = 6049 7;26 $wp_db_version = 60498; 27 27 28 28 /** 29 29 * Holds the TinyMCE version.