Fixed "stock increase" string placeholders, closes #12873

This commit is contained in:
Claudio Sanches 2017-01-18 14:34:52 -02:00
parent 2d5f092b4e
commit 11035ba4d7
1 changed files with 1 additions and 1 deletions

View File

@ -1405,7 +1405,7 @@ class WC_AJAX {
$old_stock = wc_stock_amount( $_product->stock ); $old_stock = wc_stock_amount( $_product->stock );
$new_quantity = $_product->increase_stock( $qty ); $new_quantity = $_product->increase_stock( $qty );
$order->add_order_note( sprintf( __( 'Item #%s stock increased from %1$s to %2$s.', 'woocommerce' ), $order_item['product_id'], $old_stock, $new_quantity ) ); $order->add_order_note( sprintf( __( 'Item #%1$s stock increased from %2$s to %3$s.', 'woocommerce' ), $order_item['product_id'], $old_stock, $new_quantity ) );
do_action( 'woocommerce_restock_refunded_item', $_product->get_id(), $old_stock, $new_quantity, $order, $_product ); do_action( 'woocommerce_restock_refunded_item', $_product->get_id(), $old_stock, $new_quantity, $order, $_product );
} }