#61086 closed enhancement (fixed)
Script Modules: Hooks are not registered in wp-admin
| Reported by: | jonsurrell | Owned by: | jonsurrell |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.6 |
| Component: | Script Loader | Version: | 6.5 |
| Severity: | normal | Keywords: | has-patch has-dev-note |
| Cc: | Focuses: | javascript |
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.
2 years ago
#1
- Keywords has-patch added
#3
@
2 years ago
- Component General → Script Loader
- Milestone Awaiting Review → Future Release
- Version → 6.5
#4
@
2 years 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
@
2 years 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:
2 years ago
#6
2 years ago
#10
Committed with https://core.trac.wordpress.org/changeset/58126.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/61086