浏览代码

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

Laurel Fulford 7 年之前
父节点
当前提交
a6fa15a176
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      rebalance/inc/jetpack.php
  2. 1 1
      rebalance/style.css

+ 1 - 1
rebalance/inc/jetpack.php

@@ -201,7 +201,7 @@ function rebalance_portfolio_content( $before = '', $after = '' ) {
 	if ( is_tax() && get_the_archive_description() ) {
 		echo $before . get_the_archive_description() . $after;
 	} else if ( isset( $jetpack_portfolio_content ) && '' != $jetpack_portfolio_content ) {
-		$content = convert_chars( convert_smilies( wptexturize( stripslashes( wp_filter_post_kses( addslashes( $jetpack_portfolio_content ) ) ) ) ) );
+		$content = convert_chars( convert_smilies( wptexturize( wp_kses_post( $jetpack_portfolio_content ) ) ) );
 		echo $before . $content . $after;
 	}
 }

+ 1 - 1
rebalance/style.css

@@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/rebalance/
 Author: Automattic
 Author URI: http://wordpress.com/themes/
 Description: Rebalance is a new spin on the classic Imbalance 2 portfolio theme. It is a simple, modern theme for photographers, artists, and graphic designers looking to showcase their work.
-Version: 1.1.7-wpcom
+Version: 1.1.8-wpcom
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: rebalance