From 911874c7613efe4adcba157974f3d5f9b4cee470 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 16 Dec 2014 21:39:22 +0000 Subject: [PATCH] Twenty Fifteen: Use dynamic default color value instead of hardcoded color. Merges [30932] to the 4.1 branch. props iamtakashi. see #30733. Built from https://develop.svn.wordpress.org/branches/4.1@30933 git-svn-id: http://core.svn.wordpress.org/branches/4.1@30922 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyfifteen/inc/custom-header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentyfifteen/inc/custom-header.php b/wp-content/themes/twentyfifteen/inc/custom-header.php index de02a346c6..34994a9f1c 100644 --- a/wp-content/themes/twentyfifteen/inc/custom-header.php +++ b/wp-content/themes/twentyfifteen/inc/custom-header.php @@ -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 ) {