Improved error handler for wc_delete_attribute()
This commit is contained in:
parent
fe1d54b360
commit
a7c4eb3eb7
|
@ -512,7 +512,7 @@ function wc_delete_attribute( $id ) {
|
|||
array( '%d' )
|
||||
);
|
||||
|
||||
if ( false === $deleted ) {
|
||||
if ( in_array( $deleted, array( 0, false ), true ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue