Fix Metadata deletion. See #12414 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@13496 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0f8493b92b
commit
0f638312f7
@ -147,7 +147,7 @@ function delete_metadata($meta_type, $object_id, $meta_key, $meta_value = '', $d
|
||||
if ( !$meta_type || !$meta_key )
|
||||
return false;
|
||||
|
||||
if ( !$object_id = absint($object_id) && !$delete_all )
|
||||
if ( (!$object_id = absint($object_id)) && !$delete_all )
|
||||
return false;
|
||||
|
||||
if ( ! $table = _get_meta_table($meta_type) )
|
||||
|
Loading…
Reference in New Issue
Block a user