Return correct results for both single and array cases. Fixes #10803.

git-svn-id: http://svn.automattic.com/wordpress/trunk@11948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-09-17 22:11:57 +00:00
parent 08374eeaf9
commit 8e7f77c8fb
1 changed files with 4 additions and 1 deletions

View File

@ -134,7 +134,10 @@ function get_metadata($meta_type, $object_id, $meta_key = '', $single = false) {
}
}
return false;
if ($single)
return '';
else
return array();
}
function update_meta_cache($meta_type, $object_ids) {