Make WordPress Core

Changeset 47373

Timestamp:
02/25/2020 08:06:32 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: In update_option(), remove an inaccurate statement about the $autoload value for new options.

If the option does not exist, it will be created with whatever was passed to the $autoload parameter, 'yes' being only the default value.

Props leogermani.
Fixes #48357.

File:
1 edited

Legend:

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

    r47347 r47373  
    284284 * Remember, resources cannot be serialized or added as an option.
    285285 *
    286  * If the option does not exist, then the option will be added with the option value,
    287  * with an `$autoload` value of 'yes'.
     286 * If the option does not exist, it will be created.
    288287
    289288 * This function is designed to work with or without a logged-in user. In terms of security,
Note: See TracChangeset for help on using the changeset viewer.