diff --git a/src/wp-includes/class.wp-scripts.php b/src/wp-includes/class.wp-scripts.php index 246d1fe6a2..649f086d60 100644 --- a/src/wp-includes/class.wp-scripts.php +++ b/src/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 );