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:
parent
7959828e48
commit
f596a23899
|
@ -161,6 +161,7 @@ class WP_Customize_Setting {
|
||||||
* @return mixed Null if an input isn't valid, otherwise the sanitized value.
|
* @return mixed Null if an input isn't valid, otherwise the sanitized value.
|
||||||
*/
|
*/
|
||||||
public function sanitize( $value ) {
|
public function sanitize( $value ) {
|
||||||
|
$value = stripslashes_deep( $value );
|
||||||
return apply_filters( "customize_sanitize_{$this->id}", $value );
|
return apply_filters( "customize_sanitize_{$this->id}", $value );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue