[wp-trac] [WordPress Trac] #45890: Customize: 2 browser tabs open in customizer can overwrite widgets of same type

WordPress Trac noreply at wordpress.org
Wed Jan 9 22:17:49 UTC 2019


#45890: Customize: 2 browser tabs open in customizer can overwrite widgets of same
type
--------------------------+-----------------------------
 Reporter:  mauteri       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  5.0.2
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 Not seeing this exact bug in trac, so putting in a new ticket. I've found
 other issues related to how widgets are saved (mostly with them
 disappearing), but not this exactly when I did a search.

 Steps to reproduce:

 1. Open 2 browser tabs and access customizer.
 2. Navigate to 2 different widget areas in each tab.
 3. Choose the same widget type (eg text widget) and populate with
 different content.
 4. Click publish in browser tab 1, then click publish in browser tab 2.

 This will result in the instance of the widget of tab 2 being in both
 widget areas. If you update the widget after in either widget area, it
 will update as well in the other. If you look in the database in options
 table for `sidebars_widgets` you will see the same widget ID assigned to
 both widget areas.

 This is caused by one widget overwriting the other widget as they are
 assigned the same ID on creation. They are then assigned to different
 widget areas.

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


More information about the wp-trac mailing list