[wp-trac] [WordPress Trac] #60647: Script Modules: Add data passing interface and a11y module (was: Script Modules: Allow modules to depend on existing WordPress scripts)
WordPress Trac
noreply at wordpress.org
Thu Dec 4 18:49:58 UTC 2025
#60647: Script Modules: Add data passing interface and a11y module
--------------------------------------+-------------------------
Reporter: jonsurrell | Owner: jonsurrell
Type: feature request | Status: closed
Priority: normal | Milestone: 6.8
Component: Script Loader | Version: 6.5
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: javascript
--------------------------------------+-------------------------
Description changed by jonsurrell:
Old description:
> Script modules cannot depend on existing scripts such as `wp-url`, `wp-
> i18n`, or `wp-api-fetch`.
>
> Script modules should be able to leverage the functionality available in
> existing scripts.
New description:
Script modules lack a lot of basic functionality available to scripts.
- There's no way of associating data with modules to pass to the frontend.
- Modules cannot access functionality available to scripts.
-----
I've updated the title and description to better reflect
[https://make.wordpress.org/core/2024/10/14/updates-to-script-modules-
in-6-7/ what actually shipped as a result of the work on this ticket].
Original below.
-----
Original title: **Script Modules: Allow modules to depend on existing
WordPress scripts**
Original description:
Script modules cannot depend on existing scripts such as `wp-url`, `wp-
i18n`, or `wp-api-fetch`.
Script modules should be able to leverage the functionality available in
existing scripts.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60647#comment:65>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list