Removed unused variables.
This commit is contained in:
parent
0cd5c1da66
commit
b891bfe238
|
@ -633,13 +633,13 @@ class WC_Admin_Post_Types {
|
||||||
$change_stock = absint( $_REQUEST['change_stock'] );
|
$change_stock = absint( $_REQUEST['change_stock'] );
|
||||||
switch ( $change_stock ) {
|
switch ( $change_stock ) {
|
||||||
case 2:
|
case 2:
|
||||||
$new_qty = wc_update_product_stock( $product, $stock_amount, 'increase', true );
|
wc_update_product_stock( $product, $stock_amount, 'increase', true );
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
$new_qty = wc_update_product_stock( $product, $stock_amount, 'decrease', true );
|
wc_update_product_stock( $product, $stock_amount, 'decrease', true );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$new_qty = wc_update_product_stock( $product, $stock_amount, 'set', true );
|
wc_update_product_stock( $product, $stock_amount, 'set', true );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue