[wp-trac] [WordPress Trac] #31130: WP_INSTALLING causes leakage between unit tests
WordPress Trac
noreply at wordpress.org
Thu Mar 5 19:13:02 UTC 2015
#31130: WP_INSTALLING causes leakage between unit tests
------------------------------------+-----------------------------
Reporter: boonebgorges | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+-----------------------------
Comment (by boonebgorges):
In [changeset:"31628"]:
{{{
#!CommitTicketReference repository="" revision="31628"
Introduce `$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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31130#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list