Make WordPress Core


Ignore:
Timestamp:
11/30/2014 10:55:08 PM (10 years ago)
Author:
wonderboymusic
Message:

Improve various @param docs.

See #30224.

File:
1 edited

Legend:

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

    r30652 r30673  
    344344 * @since 1.0.0
    345345 *
    346  * @param string $option Name of option to add. Expected to not be SQL-escaped.
    347  * @param mixed $value Optional. Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped.
    348  * @param mixed $deprecated Optional. Description. Not used anymore.
    349  * @param bool $autoload Optional. Default is enabled. Whether to load the option when WordPress starts up.
     346 * @param string         $option      Name of option to add. Expected to not be SQL-escaped.
     347 * @param mixed          $value      Optional. Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped.
     348 * @param string         $deprecated Optional. Description. Not used anymore.
     349 * @param string|bool    $autoload    Optional. Default is enabled. Whether to load the option when WordPress starts up.
    350350 * @return bool False if option was not added and true if option was added.
    351351 */
     
    776776 * @param string $name The name of the setting.
    777777 * @param string $value The value for the setting.
    778  * @return bool true if set successfully/false if not.
     778 * @return null|bool true if set successfully/false if not.
    779779 */
    780780function set_user_setting( $name, $value ) {
     
    798798 * @since 2.7.0
    799799 *
    800  * @param mixed $names The name or array of names of the setting to be deleted.
    801  * @return bool true if deleted successfully/false if not.
     800 * @param string $names The name or array of names of the setting to be deleted.
     801 * @return null|bool true if deleted successfully/false if not.
    802802 */
    803803function delete_user_setting( $names ) {
     
    869869 *
    870870 * @param array $user_settings
    871  * @return bool
     871 * @return null|bool
    872872 */
    873873function wp_set_all_user_settings( $user_settings ) {
Note: See TracChangeset for help on using the changeset viewer.