wordpress-develop/tests/phpunit/tests/option
Boone Gorges 94791cd8f2 Respect 'default_option_' filters during early sanity checks in add_option() and update_option().
`add_option()` and `update_option()` both call `get_option()` to compare the
value passed to the function with any existing value for the given option name.
When a `'default_option_'` filter is in place to change the default value of
an option, `add_option()` and `update_option()` ought to check against the
filtered value, rather than a hardcoded `false`, in order to determine whether
a prior value exists.

Props GregLone, tyxla.
Fixes #31047.

git-svn-id: https://develop.svn.wordpress.org/trunk@31473 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-18 19:13:43 +00:00
..
multisite.php Split and organize multisite unit tests 2014-10-16 05:06:22 +00:00
option.php Respect 'default_option_' filters during early sanity checks in add_option() and update_option(). 2015-02-18 19:13:43 +00:00
siteOption.php Split and organize multisite unit tests 2014-10-16 05:06:22 +00:00
siteTransient.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
slashes.php Fix typo in a comment in slashing tests. 2015-01-07 07:08:47 +00:00
transient.php Transient timeouts are untestable when WP_INSTALLING is defined and set to ANY value. Transient timeouts cannot be tested during multisite runs because wpmu_create_blog() sets WP_INSTALLING. I have zero idea how these tests ever passed. 2014-07-03 01:16:33 +00:00