[wp-trac] [WordPress Trac] #31501: Customizer Save race condition when attempting to publish too soon after updating widget form fields with multiple edits

WordPress Trac noreply at wordpress.org
Mon Mar 2 09:53:40 UTC 2015


#31501: Customizer Save race condition when attempting to publish too soon after
updating widget form fields with multiple edits
--------------------------+-------------------------
 Reporter:  westonruter   |       Owner:  ocean90
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  4.1.2
Component:  Customize     |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------
Changes (by westonruter):

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


Comment:

 In [attachment:31501.diff]:

  * Abort a previous updateWidget request when starting a new one
  * Defer gathering customized data until processing state is properly
 zeroed-out

 Example widget that illustrates current problem:
 https://gist.github.com/westonruter/3b472e1491be0bb6bfb4
 Try updating the two fields back and forth quickly, pause a moment to see
 them appear in the preview, then type some more and then immediately hit
 Save & Publish. The data that ends up getting saved is consistently not
 the last data that was entered.

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


More information about the wp-trac mailing list