[wp-trac] [WordPress Trac] #30741: Build-out API for adding Customizer Panels, Sections, and Controls entirely with JS

WordPress Trac noreply at wordpress.org
Fri Dec 19 00:16:57 UTC 2014


#30741: Build-out API for adding Customizer Panels, Sections, and Controls entirely
with JS
------------------------------+-----------------------------
 Reporter:  celloexpressions  |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  high              |   Milestone:  Future Release
Component:  Customize         |     Version:  4.1
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |     Focuses:
------------------------------+-----------------------------

Comment (by celloexpressions):

 Proposed API structure in PHP for dealing with rendering the content &
 container for each object type:
 - `render()` -> `render_template()`
 - `[render_]container[_template]()` would NOT be needed -
 `render_template()` would do the container and call `content_template()`
 like `render()` calls `render_content()`
 - `render_content()` -> `content_template()`
 - `print_template()` to print the templates in `<script>` tags
 Patches on #30737 will be made with this in mind. Note that sections don't
 have a separate `content` part; but panels and controls do.

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


More information about the wp-trac mailing list