diff --git a/wp-includes/meta.php b/wp-includes/meta.php index 1091073a54..f7d875f436 100644 --- a/wp-includes/meta.php +++ b/wp-includes/meta.php @@ -478,8 +478,13 @@ function get_metadata($meta_type, $object_id, $meta_key = '', $single = false) { $meta_cache = $meta_cache[$object_id]; } - if ( !$meta_key ) + if ( ! $meta_key ) { + foreach ( $meta_cache as &$meta_values ) { + $meta_values = array_map( 'maybe_unserialize', $meta_values ); + } + return $meta_cache; + } if ( isset($meta_cache[$meta_key]) ) { if ( $single ) diff --git a/wp-includes/version.php b/wp-includes/version.php index 546db820cf..2cf0efd3fc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30114'; +$wp_version = '4.1-alpha-30115'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.