wordpress-develop/tests/phpunit/tests/option
Jeremy Felt 426f5256fb Options: Do not set network options to autoload in single site
When multisite is not configured, the `_site_transient()` and `_site_option()` functions fallback to `_option()` and store network "meta/options" in `wp_options`.

Previously, those calls to `_option()` did not explicitly set the `autoload` parameter and anything assigned as a transient or option at the network level would be set to `autoload` by default, even though autoload is not yet a concept at the network option level.

This changes that behavior and forces the `autoload` setting to `no`. If `autoload` is desired, the single site option functions should be used.

Props thomaswm.
Fixes #22846.


git-svn-id: https://develop.svn.wordpress.org/trunk@37223 602fd350-edb4-49c9-b593-d223f7449a82
2016-04-16 19:47:14 +00:00
..
multisite.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
networkOption.php Options: Do not set network options to autoload in single site 2016-04-16 19:47:14 +00:00
option.php Allow $autoload setting to be changed for existing options using update_option(). 2015-03-06 13:56:44 +00:00
sanitize-option.php Use WP_TESTS_DOMAIN where it should be used in tests in place of hard-coded uses of example.org. 2015-09-24 21:01:10 +00:00
siteOption.php Unit Tests: tests that want to flush the cache should use their instance method instead of calling wp_cache_flush() - more properties need to be wiped out in between tests. 2015-10-02 05:08:13 +00:00
siteTransient.php Options: Do not set network options to autoload in single site 2016-04-16 19:47:14 +00:00
slashes.php Fix typo in a comment in slashing tests. 2015-01-07 07:08:47 +00:00
themeMods.php Add some theme mod unit tests. 2015-08-30 03:42:49 +00:00
transient.php Use wp_installing() instead of WP_INSTALLING constant. 2015-10-05 15:05:26 +00:00
updateOption.php Use wp_installing() instead of WP_INSTALLING constant. 2015-10-05 15:05:26 +00:00
userSettings.php Unit Tests: WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static). 2015-10-17 19:24:20 +00:00