Fixed HTML entities for up-sells and cross-sells fields, closes #7553
This commit is contained in:
parent
3789824e2a
commit
37882756d3
|
@ -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() ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue