mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
$autoload
parameter to update_option()
.
When creating an option via `add_option()`, the `$autoload` param allows you to tell WP whether the option should be loaded as part of the 'alloptions' cache during every pageload. `update_option()`, when used with a non-existent option calls `add_option()` internally. The new `$autoload` param in `update_option()` is passed along to `add_option()` in cases where the option does not yet exist. The associated unit tests are skipped on multisite due to an issue that causes `WP_INSTALLING` to force cache misses. See #31130. Props codix, nofearinc, MikeHansenMe. Fixes #26394. git-svn-id: https://develop.svn.wordpress.org/trunk@31628 602fd350-edb4-49c9-b593-d223f7449a82
Description
No description provided
Languages
PHP
81.5%
CSS
8.9%
JavaScript
8.1%
SCSS
0.8%
HTML
0.7%