mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-08 16:41:44 +01:00
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:
parent
08374eeaf9
commit
8e7f77c8fb
@ -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) {
|
function update_meta_cache($meta_type, $object_ids) {
|
||||||
|
Loading…
Reference in New Issue
Block a user