[wp-trac] [WordPress Trac] #47692: Optgroup in Customizer Select Control

WordPress Trac noreply at wordpress.org
Sat Nov 30 21:46:33 UTC 2019


#47692: Optgroup in Customizer Select Control
-------------------------+-----------------------------
 Reporter:  chintan1896  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Customize    |     Version:  3.4
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+-----------------------------
Changes (by dlh):

 * keywords:  has-patch => needs-patch
 * version:  5.3 => 3.4
 * milestone:  Awaiting Review => Future Release


Comment:

 Support for `optgroup` would also needed to be added to the JavaScript
 control template, I think, not just the PHP template.

 I also wonder about the `$optgroup` property in [attachment:"47692.diff"].
 What happens if a multidimensional array is used for `$choices` but
 `$optgroup` is `false`, or vice versa?

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


More information about the wp-trac mailing list