Fix undefined variable notice when adding a product that doesn't exists in order
This commit is contained in:
parent
cc94edd8ea
commit
09fff8831a
|
@ -932,6 +932,7 @@ class WC_AJAX {
|
|||
|
||||
// Add items to order.
|
||||
$order_notes = array();
|
||||
$added_items = array();
|
||||
|
||||
foreach ( $items_to_add as $item ) {
|
||||
if ( ! isset( $item['id'], $item['qty'] ) || empty( $item['id'] ) ) {
|
||||
|
|
Loading…
Reference in New Issue