Opened 11 years ago
Closed 11 years ago
#27619 closed defect (bug) (fixed)
Widget Customizer: Scripts from plugins can be missing.
Reported by: | ocean90 | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | major | Version: | 3.9 |
Component: | Customize | Keywords: | has-patch |
Focuses: | Cc: |
Description
If a plugin enqueue scripts via admin_enqueue_scripts
and styles via admin_print_styles
the scripts aren't available in the Customizer, because the named hooks aren't used there. The Customizer has it's own actions like customize_controls_print_styles
or customize_controls_print_scripts
.
The attached patch calls the admin hooks in Customizer's hooks. Currently I have ignored the general admin_head
and admin_footer
actions.
Original report: https://wordpress.org/support/topic/widgets-customizer-not-loading-widget-styles-and-scripts
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Add a div#widgets-right container element to customizer for compat with widget scripts that do event delegation from that element; less hacky hack. Do admin_enqueue_scripts after enqueueing customize-widgets. https://github.com/x-team/wordpress-develop/compare/trac-27619