[wp-trac] [WordPress Trac] #30738: JS content templates for base WP_Customize_Control

WordPress Trac noreply at wordpress.org
Sun Oct 1 16:11:37 UTC 2017


#30738: JS content templates for base WP_Customize_Control
-------------------------------------+-------------------------------------
 Reporter:  celloexpressions         |       Owner:  westonruter
     Type:  enhancement              |      Status:  accepted
 Priority:  high                     |   Milestone:  4.9
Component:  Customize                |     Version:  4.1
 Severity:  normal                   |  Resolution:
 Keywords:  needs-unit-tests has-    |     Focuses:  accessibility,
  patch needs-testing                |  javascript, rest-api
-------------------------------------+-------------------------------------

Comment (by westonruter):

 Two examples where this would be coming in handy:

 * https://github.com/xwp/wordpress-
 develop/blob/346e07f0ae26bd8623cba9fe0d609c1205d55859/src/wp-admin/js
 /customize-controls.js#L6308-L6334
 * https://github.com/xwp/wordpress-
 develop/blob/5a39ca3f5e6e58c797ac7f6d4957f3ec322604e0/src/wp-admin/js
 /customize-controls.js#L5251-L5261

 The `templateSelector`, or rather `templateId`, or even `template` should
 be a parameter when constructing the control as was recently done for
 Notifications in r41374.

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


More information about the wp-trac mailing list