From d28823df33bee5b480141d5be4d3e1a9414da9f3 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 2 Dec 2014 03:35:22 +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 Built from https://develop.svn.wordpress.org/trunk@30701 git-svn-id: http://core.svn.wordpress.org/trunk@30691 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/meta.php | 4 ---- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/wp-includes/meta.php b/wp-includes/meta.php index dbf07a54e4..c233e944ac 100644 --- a/wp-includes/meta.php +++ b/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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 76aad5aa72..3bb29574b5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-beta2-30700'; +$wp_version = '4.1-beta2-30701'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.