[wp-trac] [WordPress Trac] #35395: Provide a better gateway for code-based theme customizations with the Customizer

WordPress Trac noreply at wordpress.org
Tue Jan 12 17:10:27 UTC 2016


#35395: Provide a better gateway for code-based theme customizations with the
Customizer
------------------------------+------------------
 Reporter:  celloexpressions  |       Owner:
     Type:  feature request   |      Status:  new
 Priority:  normal            |   Milestone:  4.5
Component:  Customize         |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+------------------

Comment (by rabmalin):

 I really like the idea. When developing theme, it is generally considered
 as plugin territory. But I like to take it as an essential theme
 component. I always implement this feature in all my themes.

 * We should absolutely sanitize the input. In theme I use
 `wp_filter_nohtml_kses()` or `wp_strip_all_tags()`. But problem arise when
 escaping. May be we need to devise special escaping function considering
 some possible characters like `'`, `"`.
 * I would go for custom control for `Custom CSS` so that we can have
 larger scope for advancement like syntax highlighting, linting, line
 numbers, etc in the future.

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


More information about the wp-trac mailing list