[wp-trac] [WordPress Trac] #25094: Twenty Fourteen: Audit Theme Customization Options

WordPress Trac noreply at wordpress.org
Fri Aug 30 16:06:17 UTC 2013


#25094: Twenty Fourteen: Audit Theme Customization Options
------------------------------+--------------------
 Reporter:  celloexpressions  |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  3.8
Component:  Bundled Theme     |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |
------------------------------+--------------------

Comment (by obenland):

 What do you think about calling it Link Color, like in Twenty Eleven?

 We could make `twentyfourteen_adjust_color()` a sanitization callback, and
 return an array of the initial color and the two derivatives. We could
 call it in `twentyfourteen_customizer_styles()` with
 {{{
 #!php
 <?php
 list( $link_color, $accent_light, $accent_dark ) = get_theme_mod(
 'link_color' );
 }}}

 This way we have to calculate the colors only on save and not on every
 page load.

 In `$wp_customize->add_setting()`, type, capability, and transport can be
 omitted, these are their default values.

 Could we also use `wp_add_inline_style()` in
 `twentyfourteen_customizer_styles()`?

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25094#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list