From 6b8a2591b2e520410ca31a969f5dba3ac149c52d Mon Sep 17 00:00:00 2001 From: Rodica-Elena Andronache Date: Thu, 9 Nov 2017 10:57:32 +0200 Subject: [PATCH] Fix theme check --- functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 7c8eb68..f7d22eb 100644 --- a/functions.php +++ b/functions.php @@ -737,7 +737,11 @@ function parallax_one_customize_register_notification( $wp_customize ) { ) ) ); - $wp_customize->add_setting( 'parallax-one-notify' ); + $wp_customize->add_setting( + 'parallax-one-notify', array( + 'sanitize_callback' => 'sanitize_text_field', + ) + ); $wp_customize->add_control( 'parallax-one-notify', array( 'label' => __( 'Notification', 'parallax-one' ),