diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php index aebf3a3b59..246d1fe6a2 100644 --- a/wp-includes/class.wp-scripts.php +++ b/wp-includes/class.wp-scripts.php @@ -311,6 +311,8 @@ class WP_Scripts extends WP_Dependencies { $inline_script_tag = ''; } + $translations_stop_concat = ! empty( $obj->textdomain ); + $translations = $this->print_translations( $handle, false ); if ( $translations ) { $translations = sprintf( "\n%s\n\n", $this->type_attr, esc_attr( $handle ), $translations ); @@ -327,7 +329,7 @@ class WP_Scripts extends WP_Dependencies { */ $srce = apply_filters( 'script_loader_src', $src, $handle ); - if ( $this->in_default_dir( $srce ) && ( $before_handle || $after_handle || $translations ) ) { + if ( $this->in_default_dir( $srce ) && ( $before_handle || $after_handle || $translations_stop_concat ) ) { $this->do_concat = false; // Have to print the so-far concatenated scripts right away to maintain the right order. diff --git a/wp-includes/version.php b/wp-includes/version.php index a6646004c0..d2ef383ec1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53358'; +$wp_version = '6.1-alpha-53360'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.