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

git-svn-id: https://develop.svn.wordpress.org/trunk@11948 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-09-17 22:11:57 +00:00
parent a4d00eca9a
commit 8e26b1739b
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) {