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

WordPress Trac noreply at wordpress.org
Sat Apr 4 16:33:26 UTC 2015


#31885: Widgets in Customizer fail to sync options in select[multiple]
--------------------------+-------------------------
 Reporter:  westonruter   |       Owner:  ocean90
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.2
Component:  Customize     |     Version:  3.9
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------
Changes (by ocean90):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"32012"]:
 {{{
 #!CommitTicketReference repository="" revision="32012"
 Customize Widgets: Improve sync logic for select[multiple] inputs.

 The current logic doesn't account for the special case of
 `select[multiple]` inputs which lack a single value to synchronize: The
 value to synchronize is an array of zero or more values.
 This change replaces `_getInputStatePropertyName()` with
 `_getInputState()`, which returns the state for an input depending on its
 type, and `_setInputState()`, which updates an input's state based on its
 type.

 props westonruter.
 fixes #31885.
 }}}

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


More information about the wp-trac mailing list