Removed unused variables.

This commit is contained in:
Peter Fabian 2019-05-02 17:53:50 +02:00
parent 0cd5c1da66
commit b891bfe238
1 changed files with 3 additions and 3 deletions

View File

@ -633,13 +633,13 @@ class WC_Admin_Post_Types {
$change_stock = absint( $_REQUEST['change_stock'] );
switch ( $change_stock ) {
case 2:
$new_qty = wc_update_product_stock( $product, $stock_amount, 'increase', true );
wc_update_product_stock( $product, $stock_amount, 'increase', true );
break;
case 3:
$new_qty = wc_update_product_stock( $product, $stock_amount, 'decrease', true );
wc_update_product_stock( $product, $stock_amount, 'decrease', true );
break;
default:
$new_qty = wc_update_product_stock( $product, $stock_amount, 'set', true );
wc_update_product_stock( $product, $stock_amount, 'set', true );
break;
}
}