[wp-trac] [WordPress Trac] #37727: Allow for customize control notifications to have extensible templates

WordPress Trac noreply at wordpress.org
Sat Aug 27 04:49:04 UTC 2016


#37727: Allow for customize control notifications to have extensible templates
-------------------------+------------------------------
 Reporter:  westonruter  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Customize    |     Version:  4.6
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  javascript
-------------------------+------------------------------
Changes (by westonruter):

 * keywords:  needs-patch => has-patch


Comment:

 One approach is in [attachment:37727.0.diff] where the `Notification`
 object can have a `template` argument which is then used to render the
 ''content'' of the notification (the containing `li` is not mutable here).
 Nevertheless, the entire template for rendering out all of the
 notifications can be overridden via the `notificationsTemplate` property
 on the `wp.customize.Control` instance itself. @celloexpressions any
 thoughts on this patch?

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


More information about the wp-trac mailing list