[wp-trac] [WordPress Trac] #27491: Widget Customizer: Dynamically-created inputs cause from to replace itself without event to trigger re-initialization (was: Widget Customizer: Dynamically-created inputs cause from to replace itself without event to trigger re-initailization)

WordPress Trac noreply at wordpress.org
Sat Mar 22 20:56:21 UTC 2014


#27491: Widget Customizer: Dynamically-created inputs cause from to replace itself
without event to trigger re-initialization
--------------------------+-------------------------
 Reporter:  westonruter   |       Owner:  ocean90
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  3.9
Component:  Widgets       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------
Changes (by westonruter):

 * keywords:   => has-patch
 * owner:   => ocean90
 * status:  new => reviewing


Comment:

 In this patch 27491.diff:

  * Re-work how and when widget forms get updated
  * Replace ad hoc hooks system with jQuery events
  * Add `widget-form-update` event for widget form updates in both
 customizer and widgets admin page (fixes #19675)
  * Enter into a non-live form update mode, where the Apply button is
 restored when a sanitized form does not have the same fields as currently
 in the form, and so the fields cannot be easily updated to their sanitized
 values without doing a complete form replacement.

 Patch also pushed to GitHub: https://github.com/x-team/wordpress-
 develop/pull/5/files

 Provided an example plugin which incorporates Chosen and shows how the new
 `widget-form-update` event is used:
 https://gist.github.com/westonruter/9676069

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27491#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list