diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php index 246d1fe6a2..649f086d60 100644 --- a/wp-includes/class.wp-scripts.php +++ b/wp-includes/class.wp-scripts.php @@ -311,6 +311,10 @@ class WP_Scripts extends WP_Dependencies { $inline_script_tag = ''; } + /* + * Prevent concatenation of scripts if the text domain is defined + * to ensure the dependency order is respected. + */ $translations_stop_concat = ! empty( $obj->textdomain ); $translations = $this->print_translations( $handle, false ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 5e7a201144..dac5b8a708 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53365'; +$wp_version = '6.1-alpha-53366'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.