Docs: In `update_option()`, remove an inaccurate statement about the `$autoload` value for new options.
If the option does not exist, it will be created with whatever was passed to the `$autoload` parameter, `'yes'` being only the default value. Props leogermani. Fixes #48357. Built from https://develop.svn.wordpress.org/trunk@47373 git-svn-id: http://core.svn.wordpress.org/trunk@47160 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3a333ef030
commit
153eb7537e
|
@ -283,8 +283,7 @@ function wp_load_core_site_options( $network_id = null ) {
|
||||||
* then it will be serialized before it is inserted into the database.
|
* then it will be serialized before it is inserted into the database.
|
||||||
* Remember, resources cannot be serialized or added as an option.
|
* Remember, resources cannot be serialized or added as an option.
|
||||||
*
|
*
|
||||||
* If the option does not exist, then the option will be added with the option value,
|
* If the option does not exist, it will be created.
|
||||||
* with an `$autoload` value of 'yes'.
|
|
||||||
|
|
||||||
* This function is designed to work with or without a logged-in user. In terms of security,
|
* This function is designed to work with or without a logged-in user. In terms of security,
|
||||||
* plugin developers should check the current user's capabilities before updating any options.
|
* plugin developers should check the current user's capabilities before updating any options.
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-beta2-47372';
|
$wp_version = '5.4-beta2-47373';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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