Theme Customizer: Strip slashes when sanitizing previewed values. see #19910.

git-svn-id: https://develop.svn.wordpress.org/trunk@20028 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-02-28 21:21:16 +00:00
parent f0c5c18d81
commit 233c465de2
1 changed files with 1 additions and 0 deletions

View File

@ -161,6 +161,7 @@ class WP_Customize_Setting {
* @return mixed Null if an input isn't valid, otherwise the sanitized value.
*/
public function sanitize( $value ) {
$value = stripslashes_deep( $value );
return apply_filters( "customize_sanitize_{$this->id}", $value );
}