Twenty Fifteen: Use dynamic default color value instead of hardcoded color.

props iamtakashi.
see #30733.
Built from https://develop.svn.wordpress.org/trunk@30932


git-svn-id: http://core.svn.wordpress.org/trunk@30921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2014-12-16 21:35:23 +00:00
parent 72083f67cd
commit 6f937df4e5
1 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ endif; // twentyfifteen_header_style
function twentyfifteen_header_background_color_css() {
$color_scheme = twentyfifteen_get_color_scheme();
$default_color = $color_scheme[1];
$header_background_color = get_theme_mod( 'header_background_color', '#ffffff' );
$header_background_color = get_theme_mod( 'header_background_color', $default_color );
// Don't do anything if the current color is the default.
if ( $header_background_color === $default_color ) {
@ -225,7 +225,7 @@ add_action( 'wp_enqueue_scripts', 'twentyfifteen_header_background_color_css', 1
function twentyfifteen_sidebar_text_color_css() {
$color_scheme = twentyfifteen_get_color_scheme();
$default_color = $color_scheme[4];
$sidebar_link_color = get_theme_mod( 'sidebar_textcolor', '#333333' );
$sidebar_link_color = get_theme_mod( 'sidebar_textcolor', $default_color );
// Don't do anything if the current color is the default.
if ( $sidebar_link_color === $default_color ) {