diff --git a/src/wp-includes/class-wp-theme-json-resolver.php b/src/wp-includes/class-wp-theme-json-resolver.php index 23d4eb0f61..39354106f2 100644 --- a/src/wp-includes/class-wp-theme-json-resolver.php +++ b/src/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,