Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #57427, comment 6


Ignore:
Timestamp:
01/06/2023 11:47:14 PM (3 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57427, comment 6

    v1 v2  
    33> Yes, it appears so!
    44
    5 Don't think that's possible? :)
     5Don't think that's possible unless used incorrectly? :)
    66
    77As @SergeyBiryukov mentioned `WP_Locale` is initialized (in wp-settings.php) relatively early. `$scripts->add_inline_script()` becomes available later, after the WP_Dependencies API is initialized and is expected to be used on or after the `init` action (or throws "Doing it wrong!").