[wp-trac] [WordPress Trac] #60597: Script Modules API: Allow list of enqueued module data to be exposed

WordPress Trac noreply at wordpress.org
Mon Oct 27 16:10:40 UTC 2025


#60597: Script Modules API: Allow list of enqueued module data to be exposed
--------------------------------------+-----------------------------
 Reporter:  johnbillion               |       Owner:  westonruter
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  Future Release
Component:  Script Loader             |     Version:  6.5
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------

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/60597#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list