Make WordPress Core


Ignore:
Timestamp:
05/08/2022 11:57:19 PM (2 years ago)
Author:
peterwilsoncc
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class.wp-scripts.php

    r53360 r53366  
    312312        }
    313313
     314        /*
     315         * Prevent concatenation of scripts if the text domain is defined
     316         * to ensure the dependency order is respected.
     317         */
    314318        $translations_stop_concat = ! empty( $obj->textdomain );
    315319
Note: See TracChangeset for help on using the changeset viewer.