[wp-trac] [WordPress Trac] #48357: Improve documentation for wp-includes/option.php
WordPress Trac
noreply at wordpress.org
Tue Feb 25 20:06:10 UTC 2020
#48357: Improve documentation for wp-includes/option.php
--------------------------------------+-----------------------------
Reporter: leogermani | Owner: SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.4
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses: docs
--------------------------------------+-----------------------------
Comment (by SergeyBiryukov):
The current `$autoload` parameter description seems clear enough:
> For existing options, `$autoload` can only be updated using
`update_option()` if `$value` is also changed. Accepts `'yes'|true` to
enable or `'no'|false` to disable. For non-existent options, the default
value is `'yes'`. Default null.
Related: [31628], [31640].
Let's just remove the inaccurate statement about the `'yes'` value for new
options.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48357#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list