Files
wordpress-develop/src/wp-includes
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
..
2014-09-11 19:06:33 +00:00
2014-11-25 06:11:02 +00:00
2015-01-16 19:02:26 +00:00
2013-10-23 14:37:54 +00:00
2014-11-30 23:23:37 +00:00
2015-01-16 16:06:47 +00:00
2014-11-30 22:55:08 +00:00