[wp-trac] [WordPress Trac] #31885: Widgets in Customizer fail to sync options in select[multiple]

WordPress Trac noreply at wordpress.org
Sat Apr 4 06:12:07 UTC 2015


#31885: Widgets in Customizer fail to sync options in select[multiple]
--------------------------+-------------------------
 Reporter:  westonruter   |       Owner:  ocean90
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  4.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:

 Issue is fixed in [attachment:31885.diff]. Video of the same demo plugin
 ([attachment:test-select-multiple-widget.php]) with the patch applied:
 https://cloudup.com/iR8zseq2Y1G

 Note how in the [https://cloudup.com/i7oo4v3X0v6 video] without the patch,
 programmatically changing the widget's setting results in only one (the
 first) `select[multiple] option` being restored to `selected`. In the
 [https://cloudup.com/iR8zseq2Y1G video] with the patch applied, however,
 the multiple options get their `selected` states as expected when the
 widget's setting is updated.

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


More information about the wp-trac mailing list