Merge pull request #16774 from franticpsyx/email-order-items-undefined-product
[3.0+] Resolve undefined product notice in email-order-items.php
This commit is contained in:
commit
a9432b9fb3
|
@ -23,8 +23,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
$text_align = is_rtl() ? 'right' : 'left';
|
||||
|
||||
foreach ( $items as $item_id => $item ) :
|
||||
$product = $item->get_product();
|
||||
if ( apply_filters( 'woocommerce_order_item_visible', true, $item ) ) {
|
||||
$product = $item->get_product();
|
||||
?>
|
||||
<tr class="<?php echo esc_attr( apply_filters( 'woocommerce_order_item_class', 'order_item', $item, $order ) ); ?>">
|
||||
<td class="td" style="text-align:<?php echo $text_align; ?>; vertical-align:middle; border: 1px solid #eee; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; word-wrap:break-word;"><?php
|
||||
|
|
Loading…
Reference in New Issue