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
This commit is contained in:
koopersmith 2012-02-28 21:21:16 +00:00
parent 7959828e48
commit f596a23899
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 );
}