Make WordPress Core


Ignore:
Timestamp:
08/21/2013 09:10:23 PM (12 years ago)
Author:
wonderboymusic
Message:

Improve inline docs for function params that can be serialized when non-scalar. Fixes #18488.

File:
1 edited

Legend:

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

    r25075 r25076  
    209209 *
    210210 * @param string $option Option name. Expected to not be SQL-escaped.
    211  * @param mixed $newvalue Option value. Expected to not be SQL-escaped.
     211 * @param mixed $newvalue Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped.
    212212 * @return bool False if value was not updated and true if value was updated.
    213213 */
     
    285285 *
    286286 * @param string $option Name of option to add. Expected to not be SQL-escaped.
    287  * @param mixed $value Optional. Option value, can be anything. Expected to not be SQL-escaped.
     287 * @param mixed $value Optional. Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped.
    288288 * @param mixed $deprecated Optional. Description. Not used anymore.
    289289 * @param bool $autoload Optional. Default is enabled. Whether to load the option when WordPress starts up.
     
    489489 *
    490490 * @param string $transient Transient name. Expected to not be SQL-escaped.
    491  * @param mixed $value Transient value. Expected to not be SQL-escaped.
     491 * @param mixed $value Transient value. Must be serializable if non-scalar. Expected to not be SQL-escaped.
    492492 * @param int $expiration Time until expiration in seconds, default 0
    493493 * @return bool False if value was not set and true if value was set.
Note: See TracChangeset for help on using the changeset viewer.