[wp-trac] [WordPress Trac] #63486: Script modules should support being printed in the footer the same as classic scripts
WordPress Trac
noreply at wordpress.org
Mon Oct 27 16:10:40 UTC 2025
#63486: Script modules should support being printed in the footer the same as
classic scripts
-------------------------------------+-------------------------------------
Reporter: westonruter | Owner: westonruter
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.9
Component: Script Loader | Version: 6.5
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing | Focuses: javascript,
has-unit-tests needs-dev-note | performance
commit |
-------------------------------------+-------------------------------------
Comment (by westonruter):
In [changeset:"61073" 61073]:
{{{
#!CommitTicketReference repository="" revision="61073"
Script Loader: Restore original return value for
`WP_Script_Modules::get_dependencies()`.
Even though this method is private, there are some usages of it in the
ecosystem via the Reflection API. So this reverts the script module IDs
`string[]` return value in favor of the original `array<string, array>`
return value. This re-emphasizes the need for more public accessor methods
being tracked in #60597.
Developed in https://github.com/WordPress/wordpress-develop/pull/10403
Follow-up to [60999].
Props pbiron, westonruter, johnbillion.
See #63486, #60597.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63486#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list