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
This commit is contained in:
John Blackbourn 2020-11-14 17:02:05 +00:00
parent df2644a14a
commit 48f35e42fc
2 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,8 @@
* *
* @param string $option Name of the option to retrieve. Expected to not be SQL-escaped. * @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. * @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 ) { function get_option( $option, $default = false ) {
global $wpdb; global $wpdb;

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.