Options, Meta APIs: Stop using 'yes' and 'no' for autoload parameter in favor of recommended boolean.
This changeset does not modify any behavior, it only updates the code to use the recommended type for the `$autoload` parameter as of WordPress 6.6. The old values 'yes' and 'no' are only maintained in certain tests that are explicitly about these backward compatibility values. Props flixos90, joemcgill, mukesh27. Fixes #61939. See #61103, #61929. Built from https://develop.svn.wordpress.org/trunk@58945 git-svn-id: http://core.svn.wordpress.org/trunk@58341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4065eb8bc4
commit
05541b406c
|
@ -1844,7 +1844,7 @@ function upgrade_340() {
|
|||
if ( 'yes' === $wpdb->get_var( "SELECT autoload FROM $wpdb->options WHERE option_name = 'uninstall_plugins'" ) ) {
|
||||
$uninstall_plugins = get_option( 'uninstall_plugins' );
|
||||
delete_option( 'uninstall_plugins' );
|
||||
add_option( 'uninstall_plugins', $uninstall_plugins, null, 'no' );
|
||||
add_option( 'uninstall_plugins', $uninstall_plugins, null, false );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2340,7 +2340,7 @@ function upgrade_630() {
|
|||
$can_compress_scripts = get_option( 'can_compress_scripts', false );
|
||||
if ( false !== $can_compress_scripts ) {
|
||||
delete_option( 'can_compress_scripts' );
|
||||
add_option( 'can_compress_scripts', $can_compress_scripts, '', 'yes' );
|
||||
add_option( 'can_compress_scripts', $can_compress_scripts, '', true );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2393,7 +2393,7 @@ function upgrade_650() {
|
|||
)
|
||||
);
|
||||
|
||||
$autoload = array_fill_keys( $theme_mods_options, 'no' );
|
||||
$autoload = array_fill_keys( $theme_mods_options, false );
|
||||
wp_set_option_autoload_values( $autoload );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.7-alpha-58944';
|
||||
$wp_version = '6.7-alpha-58945';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue