From 48f35e42fc790a62d85d2a6e104550fa5a1019b9 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 14 Nov 2020 17:02:05 +0000 Subject: [PATCH] Docs: For clarity, add some information about the return types of `get_option()`. Props ReneHermi, johannadevos See #51278 Built from https://develop.svn.wordpress.org/trunk@49600 git-svn-id: http://core.svn.wordpress.org/trunk@49338 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/option.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/option.php b/wp-includes/option.php index 7dac56a6ec..5454e7becb 100644 --- a/wp-includes/option.php +++ b/wp-includes/option.php @@ -25,7 +25,8 @@ * * @param string $option Name of the option to retrieve. Expected to not be SQL-escaped. * @param mixed $default Optional. Default value to return if the option does not exist. - * @return mixed Value set for the option. + * @return mixed Value set for the option. A value of any type may be returned, including + * array, boolean, float, integer, null, object, and string. */ function get_option( $option, $default = false ) { global $wpdb; diff --git a/wp-includes/version.php b/wp-includes/version.php index 0bdbc7c1b6..1d75f3b425 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta4-49599'; +$wp_version = '5.6-beta4-49600'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.