[wp-trac] [WordPress Trac] #42984: Widget Save button problem

WordPress Trac noreply at wordpress.org
Mon Jan 8 18:42:32 UTC 2018


#42984: Widget Save button problem
--------------------------+----------------------
 Reporter:  alexvorn2     |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Widgets       |     Version:  4.9
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by westonruter):

 * keywords:  needs-patch =>
 * status:  new => closed
 * version:  trunk => 4.9
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 It's saved until the widget becomes dirty, until an input has a `change`
 event happen on it. All you need to do is `trigger('change')` on the
 hidden input. Coincidentally this is also required for the widget to work
 in the Customizer.

 This is documented in https://make.wordpress.org/core/2017/10/24/widget-
 improvements-in-wordpress-4-9/ under §Widget Saved State on Admin Screen.

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


More information about the wp-trac mailing list