[wp-trac] [WordPress Trac] #30738: JS content templates for base WP_Customize_Control
WordPress Trac
noreply at wordpress.org
Mon Aug 22 04:56:40 UTC 2016
#30738: JS content templates for base WP_Customize_Control
------------------------------------------+-----------------------------
Reporter: celloexpressions | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Customize | Version: 4.1
Severity: normal | Resolution:
Keywords: needs-unit-tests needs-patch | Focuses: javascript
------------------------------------------+-----------------------------
Comment (by westonruter):
This might go in another ticket, but we also should allow for a
`content_template` param to be passed in when instantiating a widget in
JS. When this is supplied, it should use that template instead of the
template selected via the `type` param as output from the PHP
`WP_Customize_Control::content_template()` method. This would allow for
custom control templates to be easily used without having to define an
entirely new `WP_Customize_Control` or hack around with the `type`
parameter to get it to use something else.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30738#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list