mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user