Changes between Initial Version and Version 1 of Ticket #57427, comment 6
- Timestamp:
- 01/06/2023 11:26:46 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #57427, comment 6
initial v1 5 5 Don't think that's possible? :) 6 6 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!").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 on or after the `init` action (or throws "Doing it wrong!"). 8 8 9 9 Imho 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.