Script Loader: Explain why i18n prevents concatenation.
Add inline comment to `WP_Scripts::do_item()` explaining why the definition of a text domain prevents concatenation. Follow up to [53360]. Fixes #55628. Props SergeyBiryukov. Built from https://develop.svn.wordpress.org/trunk@53366 git-svn-id: http://core.svn.wordpress.org/trunk@52955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
32c0cfe3b3
commit
70e7eec175
|
@ -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 );
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue