Make WordPress Core

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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57427, comment 6

    initial v1  
    55Don't think that's possible? :)
    66
    7 As @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 after the `init` action (or throws "Doing it wrong!").
     7As @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!").
    88
    99Imho it seems that "something" is trying to load/initialize the WP_Dependencies API without loading WP. This is a big "Doing it wrong!" and seems unrelated to the code in Gutenberg.