From 356f5664a71da5080255e339c67e1c1e8a838bda Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 14 Nov 2020 17:00:31 +0000 Subject: [PATCH] Docs: For clarity, add some information about the return types of `get_option()`. Props ReneHermi, johannadevos See #51278 git-svn-id: https://develop.svn.wordpress.org/trunk@49600 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/option.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php index 7dac56a6ec..5454e7becb 100644 --- a/src/wp-includes/option.php +++ b/src/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;