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:
parent
f0c5c18d81
commit
233c465de2
|
@ -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