Ensure we're back compat with return values and actions in deprecated *_usermeta() family. See #10837

git-svn-id: https://develop.svn.wordpress.org/trunk@13326 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-02-23 09:15:47 +00:00
parent c4449c4cb2
commit 2a86f138e8
2 changed files with 93 additions and 7 deletions
+2 -3
View File
@@ -206,11 +206,10 @@ function get_metadata($meta_type, $object_id, $meta_key = '', $single = false) {
return $meta_cache;
if ( isset($meta_cache[$meta_key]) ) {
if ( $single ) {
if ( $single )
return maybe_unserialize( $meta_cache[$meta_key][0] );
} else {
else
return array_map('maybe_unserialize', $meta_cache[$meta_key]);
}
}
if ($single)