[wp-trac] [WordPress Trac] #58963: Expand `$autoload` parameter documentation of `add_option()` and `update_option()`
WordPress Trac
noreply at wordpress.org
Mon Aug 7 19:31:29 UTC 2023
#58963: Expand `$autoload` parameter documentation of `add_option()` and
`update_option()`
--------------------------------+--------------------------------
Reporter: flixos90 | Owner: flixos90
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 6.4
Component: Options, Meta APIs | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs, performance
--------------------------------+--------------------------------
Changes (by flixos90):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"56370" 56370]:
{{{
#!CommitTicketReference repository="" revision="56370"
Options, Meta APIs: Expand `$autoload` parameter documentation.
This changeset expands documentation of the `$autoload` parameter of the
`add_option()` and `update_option()` functions, in order to provide more
context on what autoloading is and which considerations should go into the
decision whether to autoload an option.
Excessive autoloading of options can lead to severe performance problems
on some sites, and lack of documentation is a partial cause for the issue.
Props rajinsharwar.
Fixes #58963.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58963#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list