Merge pull request #17499 from woocommerce/fix/17492
Removed wp_kses_post() from product archive description
This commit is contained in:
commit
bf4063b0cb
|
@ -695,8 +695,6 @@ if ( ! function_exists( 'woocommerce_product_archive_description' ) ) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show a shop page description on product archives.
|
* Show a shop page description on product archives.
|
||||||
*
|
|
||||||
* @subpackage Archives
|
|
||||||
*/
|
*/
|
||||||
function woocommerce_product_archive_description() {
|
function woocommerce_product_archive_description() {
|
||||||
// Don't display the description on search results page.
|
// Don't display the description on search results page.
|
||||||
|
@ -709,7 +707,7 @@ if ( ! function_exists( 'woocommerce_product_archive_description' ) ) {
|
||||||
if ( $shop_page ) {
|
if ( $shop_page ) {
|
||||||
$description = wc_format_content( $shop_page->post_content );
|
$description = wc_format_content( $shop_page->post_content );
|
||||||
if ( $description ) {
|
if ( $description ) {
|
||||||
echo '<div class="page-description">' . wp_kses_post( $description ) . '</div>';
|
echo '<div class="page-description">' . $description . '</div>'; // WPCS: XSS ok.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue