Added wp_kses_post to purchase note
This commit is contained in:
parent
96a9e48823
commit
f26df90a25
|
@ -74,7 +74,7 @@ $order = wc_get_order( $order_id );
|
|||
if ( $order->has_status( array( 'completed', 'processing' ) ) && ( $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) ) {
|
||||
?>
|
||||
<tr class="product-purchase-note">
|
||||
<td colspan="3"><?php echo wpautop( do_shortcode( $purchase_note ) ); ?></td>
|
||||
<td colspan="3"><?php echo wpautop( do_shortcode( wp_kses_post( $purchase_note ) ) ); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue