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:
parent
a4d00eca9a
commit
8e26b1739b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue