Upgrade/Install: Add correct parameters to add_option in upgrade_630
Introduced in [55854], `upgrade_630` function was introduced to update `can_compress_scripts` option to autoload. However the function `add_option` was invoked incorrectly, passing 3 parameters and not 4. The third parameter, which is deprecated, triggers a deprecated argument warning. In this change, pass 4 parameters instead of 3. Props gudmdharalds, spacedmonkey, costdev, mukesh27. Fixes #58821. Built from https://develop.svn.wordpress.org/trunk@56258 git-svn-id: http://core.svn.wordpress.org/trunk@55770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
26395d827e
commit
e0eaffdd3c
|
@ -2320,7 +2320,7 @@ function upgrade_630() {
|
||||||
$can_compress_scripts = get_option( 'can_compress_scripts', false );
|
$can_compress_scripts = get_option( 'can_compress_scripts', false );
|
||||||
if ( false !== $can_compress_scripts ) {
|
if ( false !== $can_compress_scripts ) {
|
||||||
delete_option( '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, '', 'yes' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.3-beta4-56257';
|
$wp_version = '6.3-beta4-56258';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue