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:
dd32 2010-02-28 10:07:55 +00:00
parent 89406adcee
commit 5fc388aa29
1 changed files with 1 additions and 1 deletions

View File

@ -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) )