[wp-trac] [WordPress Trac] #27619: Widget Customizer: Scripts from plugins can be missing.
WordPress Trac
noreply at wordpress.org
Wed Apr 2 17:03:16 UTC 2014
#27619: Widget Customizer: Scripts from plugins can be missing.
--------------------------+----------------------
Reporter: ocean90 | Owner: ocean90
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.9
Component: Appearance | Version: trunk
Severity: major | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+----------------------
Changes (by ocean90):
* owner: => ocean90
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"27907"]:
{{{
#!CommitTicketReference repository="" revision="27907"
Widget Customizer: Improve plugin compatibility.
Some plugins are using custom scripts and styles for there widgets. These
are available on the Widgets screens, but not in the Customizer yet.
Scripts and styles can be enqueued via:
* `admin_enqueue_scripts`
* `admin_print_scripts` and `admin_print_scripts-widgets.php`
* `admin_print_styles` and `admin_print_styles-widgets.php`
* `admin_print_footer_scripts` and `admin_footer-widgets.php`
All this hooks are now called in the Customizer too.
Previously we have add the `#widgets-right` ID to a container div via
jQuery. Remember: `#widgets-right` exists on the Widgets screen and is
used by many plugins to do event delegation from that element.
But since our script files are loaded in the footer, the JavaScript way is
a bit late for some plugins.
We have decided to add a `div#widgets-right` container element to
customizer. "Less hacky hack."
props westonruter, ocean90. Thanks dpe415 for testing.
fixes #27619.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27619#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list