mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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
This commit is contained in:
parent
c375590c0e
commit
356f5664a7
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user