diff --git a/projects/plugins/jetpack/changelog/fix-subscribe-slashes b/projects/plugins/jetpack/changelog/fix-subscribe-slashes new file mode 100644 index 0000000000000..61d21c9a19aed --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-subscribe-slashes @@ -0,0 +1,4 @@ +Significance: patch +Type: bugfix + +Subscriptions: fix added slashes to the Follow Blog widget. diff --git a/projects/plugins/jetpack/modules/subscriptions/views.php b/projects/plugins/jetpack/modules/subscriptions/views.php index a689e203bf5ea..3ef2fde1e05be 100644 --- a/projects/plugins/jetpack/modules/subscriptions/views.php +++ b/projects/plugins/jetpack/modules/subscriptions/views.php @@ -358,7 +358,7 @@ public static function render_widget_subscription_form( $args, $instance, $subsc $show_subscribers_total = (bool) $instance['show_subscribers_total']; $subscribers_total = self::fetch_subscriber_count(); $subscribe_text = empty( $instance['show_only_email_and_button'] ) ? - wp_kses_post( $instance['subscribe_text'] ) : + wp_kses_post( stripslashes( $instance['subscribe_text'] ) ) : false; $referer = esc_url_raw( ( is_ssl() ? 'https' : 'http' ) . '://' . ( isset( $_SERVER['HTTP_HOST'] ) ? wp_unslash( $_SERVER['HTTP_HOST'] ) : '' ) . ( isset( $_SERVER['REQUEST_URI'] ) ? wp_unslash( $_SERVER['REQUEST_URI'] ) : '' ) ); $source = 'widget';