From f596a2389941c87efee638ff239eebd62f2f0bb8 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@20028 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 c2b0f74e5..b39a31722 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 ); }