Go to file
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
src Respect 'default_option_' filters during early sanity checks in `add_option()` and `update_option()`. 2015-02-18 19:13:43 +00:00
tests Respect 'default_option_' filters during early sanity checks in `add_option()` and `update_option()`. 2015-02-18 19:13:43 +00:00
tools/i18n i18n tools: Sync makepot.php with i18n.svn. 2015-01-31 22:01:33 +00:00
.editorconfig .jshintrc is a json file and .editorconfig should treat it like a json file 2014-10-08 19:26:50 +00:00
.gitignore Ignore any local WP Cli config files. 2014-10-28 17:01:22 +00:00
.jshintrc
.travis.yml Restore PHP 5.2 to Travis CI 2015-02-18 17:46:18 +00:00
Gruntfile.js Media JS files: 2015-02-09 16:00:44 +00:00
package.json Update grunt-cssjanus to 0.2.4, we no longer need the fork. 2015-02-11 22:27:53 +00:00
phpunit.xml.dist Exclude external-http tests when running `phpunit`. 2014-11-10 14:48:28 +00:00
wp-cli.yml Introduce default `wp-cli.yml` for core development. 2014-04-30 21:35:18 +00:00
wp-config-sample.php Remove 'WordPress Language' reference from wp-config-sample.php. 2014-09-09 01:22:05 +00:00
wp-tests-config-sample.php