diff --git a/wp-includes/class-wp-theme-json-resolver.php b/wp-includes/class-wp-theme-json-resolver.php index 23d4eb0f61..39354106f2 100644 --- a/wp-includes/class-wp-theme-json-resolver.php +++ b/wp-includes/class-wp-theme-json-resolver.php @@ -121,14 +121,13 @@ class WP_Theme_JSON_Resolver { foreach ( $i18n_partial as $property => $partial_child ) { if ( is_numeric( $property ) ) { foreach ( $partial_child as $key => $context ) { - return array( - array( - 'path' => $current_path, - 'key' => $key, - 'context' => $context, - ), + $result[] = array( + 'path' => $current_path, + 'key' => $key, + 'context' => $context, ); } + return $result; } $result = array_merge( $result, diff --git a/wp-includes/version.php b/wp-includes/version.php index 1f71892b15..92a8ba418d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51471'; +$wp_version = '5.9-alpha-51472'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.