Merge pull request #12746 from franticpsyx/fix-undefined-qty_ordered-var

[2.7] Fix undefined '$qty_ordered' variable in 'wc_reduce_stock_levels'
This commit is contained in:
Claudio Sanches 2017-01-03 17:49:17 -02:00 committed by GitHub
commit 0479f4a127
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ function wc_reduce_stock_levels( $order_id ) {
} }
if ( $new_stock < 0 ) { if ( $new_stock < 0 ) {
do_action( 'woocommerce_product_on_backorder', array( 'product' => $product, 'order_id' => $order_id, 'quantity' => $qty_ordered ) ); do_action( 'woocommerce_product_on_backorder', array( 'product' => $product, 'order_id' => $order_id, 'quantity' => $qty ) );
} }
} }
} }