[wp-trac] [WordPress Trac] #32183: Widget ID auto-increments conflict for concurrent users

WordPress Trac noreply at wordpress.org
Wed Jun 17 03:16:33 UTC 2015

#32183: Widget ID auto-increments conflict for concurrent users
 Reporter:  westonruter   |       Owner:  westonruter
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  4.3
Component:  Widgets       |     Version:  2.8
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:

Comment (by tellyworth):

 One approach to solving this would be to have `wp_ajax_save_widget()` and
 (I think) `WP_Customize_Widgets::wp_ajax_update_widget()` check for a
 conflicting multi_number when `add_new` is set; if it is, return an
 incremented number, and have the controls switch to that.
 `wp_ajax_save_widget` doesn't currently return data though.

 That'd make it transparent to the user, but I'm not yet sure if the
 broader approaches to concurrent widget editing might fix this in a
 general way.

 Does that sound like a sane solution?

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

More information about the wp-trac mailing list