Make WordPress Core

Changeset 36234


Ignore:
Timestamp:
01/09/2016 03:11:59 AM (8 years ago)
Author:
boonebgorges
Message:

Clarify return types in get_option() documentation.

The new note specifies that scalar values will always be returned as strings.

Fixes #31820.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/option.php

    r35431 r36234  
    1616 *
    1717 * If the option was serialized then it will be unserialized when it is returned.
     18 *
     19 * Any scalar values will be returned as strings. You may coerce the return type of a given option by registering a
     20 * 'option_{$option}' filter callback.
    1821 *
    1922 * @since 1.5.0
Note: See TracChangeset for help on using the changeset viewer.