Improved error handler for wc_delete_attribute()

This commit is contained in:
Claudio Sanches 2017-07-07 18:49:46 -03:00
parent fe1d54b360
commit a7c4eb3eb7
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ function wc_delete_attribute( $id ) {
array( '%d' )
);
if ( false === $deleted ) {
if ( in_array( $deleted, array( 0, false ), true ) ) {
return false;
}