Fix purchase note output

Fixes #6835
This commit is contained in:
Mike Jolley 2014-12-05 14:54:12 +00:00
parent fffc1c772b
commit 72f41440dd
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ foreach ( $items as $item_id => $item ) :
<?php
}
if ( $show_purchase_note && is_object( $_product ) && $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) : ?>
if ( $show_purchase_note && is_object( $_product ) && ( $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) ) : ?>
<tr>
<td colspan="3" style="text-align:left; vertical-align:middle; border: 1px solid #eee;"><?php echo wpautop( do_shortcode( wp_kses_post( $purchase_note ) ) ); ?></td>
</tr>

View File

@ -61,7 +61,7 @@ foreach ( $items as $item_id => $item ) :
}
// Note
if ( $show_purchase_note && $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) {
if ( $show_purchase_note && ( $purchase_note = get_post_meta( $_product->id, '_purchase_note', true ) ) ) {
echo "\n" . do_shortcode( wp_kses_post( $purchase_note ) );
}