Wordpress/tests/phpunit/tests/option
Sergey Biryukov 56b6b1e803 Themes: In get_theme_mod(), only run the sprintf() replacement on the default value if there's a string format pattern found in the value.
This prevents standalone percent symbols from being stripped out, e.g. in a default value like `100%`.

Props aristath, kuus, moonomo, westonruter, davetgreen, daviedR, katielgc, noisysocks, SergeyBiryukov.
Fixes #34290.

git-svn-id: https://develop.svn.wordpress.org/trunk@46395 602fd350-edb4-49c9-b593-d223f7449a82
2019-10-05 00:53:39 +00:00
..
multisite.php Code is Poetry. 2017-11-30 23:09:33 +00:00
networkOption.php Options: Avoid unnecessary DB calls when updating network options. 2019-01-21 04:26:33 +00:00
option.php Code is Poetry. 2017-11-30 23:09:33 +00:00
registration.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
sanitize-option.php Administration: Adjust [45814] to address a backward compatibility issue for plugins passing multiple CSS classes to add_settings_error(). 2019-08-22 00:21:49 +00:00
siteOption.php Code is Poetry. 2017-11-30 23:09:33 +00:00
siteTransient.php Code is Poetry. 2017-11-30 23:09:33 +00:00
slashes.php Code is Poetry. 2017-11-30 23:09:33 +00:00
themeMods.php Themes: In get_theme_mod(), only run the sprintf() replacement on the default value if there's a string format pattern found in the value. 2019-10-05 00:53:39 +00:00
transient.php Code is Poetry. 2017-11-30 23:09:33 +00:00
updateOption.php Code is Poetry. 2017-11-30 23:09:33 +00:00
userSettings.php Code is Poetry. 2017-11-30 23:09:33 +00:00
wpLoadAllOptions.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in tests. 2019-07-02 04:43:01 +00:00