Merge pull request #16188 from woocommerce/fix/16184

Unchecked checkbox should be an empty string
This commit is contained in:
Claudio Sanches 2017-07-19 11:09:39 -03:00 committed by GitHub
commit 0a5cbae506
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ class WC_Checkout {
switch ( $type ) {
case 'checkbox' :
$value = (int) isset( $_POST[ $key ] );
$value = isset( $_POST[ $key ] ) ? 1 : '';
break;
case 'multiselect' :
$value = isset( $_POST[ $key ] ) ? implode( ', ', wc_clean( $_POST[ $key ] ) ) : '';