[wp-trac] [WordPress Trac] #61929: Update documentation for remaining autoload functions to only include `true|false` as parameter values
WordPress Trac
noreply at wordpress.org
Mon Aug 26 22:18:37 UTC 2024
#61929: Update documentation for remaining autoload functions to only include
`true|false` as parameter values
--------------------------------+-------------------------
Reporter: flixos90 | Owner: flixos90
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.7
Component: Options, Meta APIs | Version:
Severity: normal | Keywords: needs-patch
Focuses: performance |
--------------------------------+-------------------------
As of WordPress 6.6, `add_option()` and `update_option()` should only be
used with the boolean values `true` and `false` for the `$autoload`
parameter (plus the special value `null`). The older values `'yes'` and
`'no'` are supported for backward compatibility, but no longer encouraged.
There are other autoloading related functions that still have `'yes'` and
`'no'` documented. Those should be updated to only recommend the boolean
values (without actually dropping support, as we need to remain backward
compatible).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61929>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list