[wp-trac] [WordPress Trac] #48357: Improve documentation for wp-includes/option.php
WordPress Trac
noreply at wordpress.org
Thu Oct 17 13:40:03 UTC 2019
#48357: Improve documentation for wp-includes/option.php
--------------------------------+-----------------------------
Reporter: leogermani | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version:
Severity: normal | Keywords:
Focuses: docs |
--------------------------------+-----------------------------
In the `update_option` documentation, since the `$autoload` parameter is
added, the sentence below is incorrect:
`If the option does not exist, then the option will be added with the
option value, with an `$autoload` value of 'yes'.`
Actually it will be added with whatever was passed to the `$autoload`
parameter, `'yes'` being only the default value.
This ticket/patch proposes a new text for the function description and for
the documentation of the `$autoload` argument.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48357>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list