Clarify return types in get_option() documentation.
The new note specifies that scalar values will always be returned as strings. Fixes #31820. Built from https://develop.svn.wordpress.org/trunk@36234 git-svn-id: http://core.svn.wordpress.org/trunk@36201 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
*
|
||||
* If the option was serialized then it will be unserialized when it is returned.
|
||||
*
|
||||
* Any scalar values will be returned as strings. You may coerce the return type of a given option by registering a
|
||||
* 'option_{$option}' filter callback.
|
||||
*
|
||||
* @since 1.5.0
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
|
||||
Reference in New Issue
Block a user