From 5fc388aa29ee3d68d594272d30948e19792604dd Mon Sep 17 00:00:00 2001 From: dd32 Date: Sun, 28 Feb 2010 10:07:55 +0000 Subject: [PATCH] Fix Metadata deletion. See #12414 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@13496 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/meta.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/meta.php b/wp-includes/meta.php index 48d7dd7e5e..30b38d28b4 100644 --- a/wp-includes/meta.php +++ b/wp-includes/meta.php @@ -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) )