Fix Metadata deletion. See #12414 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@13496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
89406adcee
commit
5fc388aa29
|
@ -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