From 7a3bd70c8b49e37ac14c9d1884dffb70ee26a566 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 16 Sep 2015 13:20:59 +0100 Subject: [PATCH] Allow bulk edit price to 0 Fixes #9143 --- includes/class-wc-ajax.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php index fb831fb489d..62f47468f01 100644 --- a/includes/class-wc-ajax.php +++ b/includes/class-wc-ajax.php @@ -2716,7 +2716,7 @@ class WC_AJAX { * @param array $data */ private static function variation_bulk_action_variable_regular_price( $variations, $data ) { - if ( empty( $data['value'] ) ) { + if ( ! isset( $data['value'] ) ) { return; } @@ -2742,7 +2742,7 @@ class WC_AJAX { * @param array $data */ private static function variation_bulk_action_variable_sale_price( $variations, $data ) { - if ( empty( $data['value'] ) ) { + if ( ! isset( $data['value'] ) ) { return; }