#61086 closed enhancement (fixed)
Script Modules: Hooks are not registered in wp-admin
Reported by: | jonsurrell | Owned by: | jonsurrell |
---|---|---|---|
Milestone: | 6.6 | Priority: | normal |
Severity: | normal | Version: | 6.5 |
Component: | Script Loader | Keywords: | has-patch has-dev-note |
Focuses: | javascript | Cc: |
Description
Script Modules cannot be used in wp-admin. The necessary hooks are registered on wp_head
or wp_footer
, but should also be registered for the admin variants so that modules can be used from wp-admin.
Change History (13)
This ticket was mentioned in PR #6452 on WordPress/wordpress-develop by @jonsurrell.
7 months ago
#1
- Keywords has-patch added
#3
@
7 months ago
- Component changed from General to Script Loader
- Milestone changed from Awaiting Review to Future Release
- Version set to 6.5
#4
@
7 months ago
Thanks @johnbillion. I'll surface this context from you had in #60596 from the original ticket:
From https://core.trac.wordpress.org/ticket/56313#comment:49:
This feature only works on the front end, not within the wp-admin area, is this intentional?
It's not. Feel free to add a new ticket to add hooks for the admin.
#5
@
7 months ago
This blocks #61087. The Interactivity API depends on a Script Module so will not be usable in wp-admin until this is address.
@cbravobernal commented on PR #6452:
7 months ago
#6
7 months ago
#10
Committed with https://core.trac.wordpress.org/changeset/58126.
Trac ticket: https://core.trac.wordpress.org/ticket/61086