Wrong variable name in \wc_add_order_item

This commit is contained in:
Mihai Grigori 2017-04-19 15:55:49 +03:00
parent 8ab10ade0e
commit 170de188a0
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
* @param array $item_array
* @return int|bool Item ID or false
*/
function wc_add_order_item( $order_id, $item ) {
function wc_add_order_item( $order_id, $item_array ) {
if ( ! $order_id = absint( $order_id ) ) {
return false;
}