Changeset 60721
- Timestamp:
- 09/08/2025 01:46:00 PM (2 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/upgrade.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/upgrade.php
r60718 r60721 881 881 if ( $wp_current_db_version < 58975 ) { 882 882 upgrade_670(); 883 upgrade_690();884 883 } 885 884 886 885 if ( $wp_current_db_version < 60421 ) { 887 886 upgrade_682(); 887 } 888 889 if ( $wp_current_db_version < 60717 ) { 890 upgrade_690(); 888 891 } 889 892 … … 2489 2492 * @since 6.9.0 2490 2493 * 2491 * @global int $wp_current_db_version The old (current) database version. 2492 * @global wpdb $wpdb WordPress database abstraction object. 2494 * @global int $wp_current_db_version The old (current) database version. 2493 2495 */ 2494 2496 function upgrade_690() { 2495 global $wp_current_db_version, $wpdb; 2496 2497 // Switch Hello Dolly from file to directory format. See #53323 2498 $active_plugins = get_option( 'active_plugins' ); 2499 $old_plugin = 'hello.php'; 2500 $new_plugin = 'hello-dolly/hello.php'; 2501 $key = array_search( $old_plugin, $active_plugins, true ); 2502 2503 if ( $key ) { 2504 $active_plugins[ $key ] = $new_plugin; 2505 update_option( 'active_plugins', $active_plugins ); 2506 } 2497 global $wp_current_db_version; 2507 2498 2508 2499 if ( $wp_current_db_version < 60717 ) { 2509 $wpdb->query( "ALTER TABLE $wpdb->posts ADD INDEX type_status_author (post_type,post_status,post_author)" ); 2500 // Switch Hello Dolly from file to directory format. See #53323 2501 $active_plugins = get_option( 'active_plugins' ); 2502 $old_plugin = 'hello.php'; 2503 $new_plugin = 'hello-dolly/hello.php'; 2504 $key = array_search( $old_plugin, $active_plugins, true ); 2505 2506 if ( $key ) { 2507 $active_plugins[ $key ] = $new_plugin; 2508 update_option( 'active_plugins', $active_plugins ); 2509 } 2510 2510 } 2511 2511 }
Note: See TracChangeset
for help on using the changeset viewer.