Fixed HTML entities for up-sells and cross-sells fields, closes #7553

This commit is contained in:
Claudio Sanches 2015-02-25 10:27:53 -03:00
parent 3789824e2a
commit 37882756d3
1 changed files with 2 additions and 2 deletions

View File

@ -482,7 +482,7 @@ class WC_Meta_Box_Product_Data {
foreach ( $product_ids as $product_id ) { foreach ( $product_ids as $product_id ) {
$product = wc_get_product( $product_id ); $product = wc_get_product( $product_id );
if ( is_object( $product ) ) { if ( is_object( $product ) ) {
$json_ids[ $product_id ] = wp_kses_post( $product->get_formatted_name() ); $json_ids[ $product_id ] = wp_kses_post( html_entity_decode( $product->get_formatted_name() ) );
} }
} }
@ -497,7 +497,7 @@ class WC_Meta_Box_Product_Data {
foreach ( $product_ids as $product_id ) { foreach ( $product_ids as $product_id ) {
$product = wc_get_product( $product_id ); $product = wc_get_product( $product_id );
if ( is_object( $product ) ) { if ( is_object( $product ) ) {
$json_ids[ $product_id ] = wp_kses_post( $product->get_formatted_name() ); $json_ids[ $product_id ] = wp_kses_post( html_entity_decode( $product->get_formatted_name() ) );
} }
} }