Browse Source

Shoreditch: Use wp_kses_post rather than wp_filter_post_kses. See 5019-wpcom-themes.

Laurel Fulford 7 years ago
parent
commit
95bbe26fbe
2 changed files with 2 additions and 2 deletions
  1. 1 1
      shoreditch/inc/jetpack.php
  2. 1 1
      shoreditch/style.css

+ 1 - 1
shoreditch/inc/jetpack.php

@@ -138,7 +138,7 @@ function shoreditch_testimonials_title( $before = '', $after = '' ) {
 function shoreditch_testimonials_content( $before = '', $after = '' ) {
 	$jetpack_options = get_theme_mod( 'jetpack_testimonials' );
 	if ( isset( $jetpack_options['page-content'] ) && '' != $jetpack_options['page-content'] ) {
-		$content = convert_chars( convert_smilies( wptexturize( stripslashes( wp_filter_post_kses( addslashes( $jetpack_options['page-content'] ) ) ) ) ) );
+		$content = convert_chars( convert_smilies( wptexturize( wp_kses_post( $jetpack_options['page-content'] ) ) ) );
 		echo $before . $content . $after;
 	}
 }

+ 1 - 1
shoreditch/style.css

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.com/themes/shoreditch/
 Author: Automattic
 Author URI: https://wordpress.com/themes/
 Description: Shoreditch is a functional and responsive theme perfect for your business’s online presence. Although its main purpose is business, Shoreditch looks great as a personal blog theme too.
-Version: 1.2.1-wpcom
+Version: 1.2.2-wpcom
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: shoreditch