wordpress-develop/tests/phpunit/tests/option
Gary Pendergast bd85b7a39b Options: Add new alloptions and pre_cache_alloptions filters.
`pre_cache_alloptions` is run before the alloptions array is inserted into the cache, and is valuable for sanity checking the options, particularly if your caching scheme has size limitations.

`alloptions` is run before returning the alloptions array, and is useful for when you have extra information that alloptions should return.

Props sebastian.pisula, keesiemeijer.
Fixes #33958.



git-svn-id: https://develop.svn.wordpress.org/trunk@41627 602fd350-edb4-49c9-b593-d223f7449a82
2017-09-28 00:22:48 +00:00
..
multisite.php Multisite: Remove references to $wpdb->siteid and use get_current_network_id() instead. 2017-08-12 13:10:24 +00:00
networkOption.php Build/Test Tools: Automatically skip tests in the ms-required and ms-excluded groups. 2017-05-01 20:34:10 +00:00
option.php Build/Test Tools: Remove some more randomness. 2016-12-10 00:01:30 +00:00
registration.php Options: Pass the $passed_default parameter to the 'default_option_{$option} filter in add_option(). 2016-11-30 21:21:21 +00:00
sanitize-option.php Permalinks: Validate custom permalink structures. 2016-06-19 12:01:11 +00:00
siteOption.php Build/Test Tools: Remove some more randomness. 2016-12-10 00:01:30 +00:00
siteTransient.php Build/Test Tools: Automatically skip tests in the ms-required and ms-excluded groups. 2017-05-01 20:34:10 +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 Build/Test Tools: Remove many unnecessary calls to rand_str() which can, in theory, fail at random. Static strings are much more appropriate. 2016-08-26 20:21:30 +00:00
updateOption.php Options: Prevent unnecessary SQL updates by update_option. 2016-12-11 21:42:12 +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
wpLoadAllOptions.php Options: Add new alloptions and pre_cache_alloptions filters. 2017-09-28 00:22:48 +00:00