From 153eb7537e984e784cb5b66cd787ada10d79bfef Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 25 Feb 2020 20:08:07 +0000 Subject: [PATCH] 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 --- wp-includes/option.php | 3 +-- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/option.php b/wp-includes/option.php index 48bbe3beb5..51dc8cc153 100644 --- a/wp-includes/option.php +++ b/wp-includes/option.php @@ -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. * 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, - * with an `$autoload` value of 'yes'. + * If the option does not exist, it will be created. * 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. diff --git a/wp-includes/version.php b/wp-includes/version.php index 71596d2e03..1d5a8d2ed5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @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.