From 9e29ed0bda5c238be3aebf66927b32284d96ec8c Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Wed, 1 Nov 2017 14:16:19 -0200 Subject: [PATCH] Removed wp_kses_post() from product archive description Fixes #17492 --- includes/wc-template-functions.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/wc-template-functions.php b/includes/wc-template-functions.php index ab2d1cc6fb1..062cea3ebd3 100644 --- a/includes/wc-template-functions.php +++ b/includes/wc-template-functions.php @@ -695,8 +695,6 @@ if ( ! function_exists( 'woocommerce_product_archive_description' ) ) { /** * Show a shop page description on product archives. - * - * @subpackage Archives */ function woocommerce_product_archive_description() { // Don't display the description on search results page. @@ -705,11 +703,11 @@ if ( ! function_exists( 'woocommerce_product_archive_description' ) ) { } if ( is_post_type_archive( 'product' ) && 0 === absint( get_query_var( 'paged' ) ) ) { - $shop_page = get_post( wc_get_page_id( 'shop' ) ); + $shop_page = get_post( wc_get_page_id( 'shop' ) ); if ( $shop_page ) { $description = wc_format_content( $shop_page->post_content ); if ( $description ) { - echo '
' . wp_kses_post( $description ) . '
'; + echo '
' . $description . '
'; // WPCS: XSS ok. } } }