From 294b608879adfb14f458fbfc9ddc86b0c2c3bc2d Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 2 Dec 2014 03:34:13 +0000 Subject: [PATCH] Revert r30115 which was a breaking change for code which interacts with the return value of `get_metadata()` when no meta key is specified. See #15030 git-svn-id: https://develop.svn.wordpress.org/trunk@30701 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/meta.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php index dbf07a54e4..c233e944ac 100644 --- a/src/wp-includes/meta.php +++ b/src/wp-includes/meta.php @@ -493,10 +493,6 @@ function get_metadata($meta_type, $object_id, $meta_key = '', $single = false) { } if ( ! $meta_key ) { - foreach ( $meta_cache as &$meta_values ) { - $meta_values = array_map( 'maybe_unserialize', $meta_values ); - } - return $meta_cache; }