From 233c465de2b21eead2aa79ebabb1ce01d6ef31c0 Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Tue, 28 Feb 2012 21:21:16 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-customize-setting.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/class-wp-customize-setting.php b/wp-includes/class-wp-customize-setting.php index c2b0f74e52..b39a317221 100644 --- a/wp-includes/class-wp-customize-setting.php +++ b/wp-includes/class-wp-customize-setting.php @@ -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 ); }