[wp-trac] [WordPress Trac] #28477: New Built-in Customizer Control Types

WordPress Trac noreply at wordpress.org
Mon Jun 9 20:16:35 UTC 2014


#28477: New Built-in Customizer Control Types
------------------------------------+---------------------------------
 Reporter:  celloexpressions        |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Appearance              |     Version:  3.4
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  ui, administration
------------------------------------+---------------------------------

Comment (by westonruter):

 @celloexpressions I really like this.

 For feedback, what if instead of a `$numerical` property, it instead
 implemented an array of `input` attrbutes (e.g.`$input_attrs`), and then
 all provided attributes would get serialized and inserted into the
 `<input>` element. This would make it easy to add support for `pattern`
 and other attributes.

 Additionally, should not there also be some default server-side validation
 for controls with these input attributes provided? I suppose it would
 actually be the domain of the associated customize setting, but it would
 be nice if there was a low-priority filter that would get added
 automatically to enforce the HTML5 validity constraints.

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


More information about the wp-trac mailing list