[wp-trac] [WordPress Trac] #30236: Trigger widget-added event in Customizer when initializing

WordPress Trac noreply at wordpress.org
Mon Nov 3 06:51:01 UTC 2014


#30236: Trigger widget-added event in Customizer when initializing
--------------------------+-------------------
 Reporter:  westonruter   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.1
Component:  Customize     |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-------------------
 Parent ticket: #28709

 We need to trigger the `widget-added` event when a `WidgetControl` is
 ready so that plugins can attach any event listeners and dynamic UI
 elements. Before 4.1 this was not needed because the widget controls were
 rendered into the pane via PHP and so they could be selected as children
 of #widgets-right, but now in 4.1 (#28709) the controls are added to the
 pane dynamically via JS at `jQuery.ready`, which may be too late for
 widgets' enqueued scripts.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30236>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list