Make WordPress Core


Ignore:
Timestamp:
12/16/2014 09:34:46 PM (12 years ago)
Author:
ocean90
Message:

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

props iamtakashi.
see #30733.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/inc/custom-header.php

    r30806 r30932  
    182182        $color_scheme            = twentyfifteen_get_color_scheme();
    183183        $default_color           = $color_scheme[1];
    184         $header_background_color = get_theme_mod( 'header_background_color', '#ffffff' );
     184        $header_background_color = get_theme_mod( 'header_background_color', $default_color );
    185185
    186186        // Don't do anything if the current color is the default.
    … …  
    226226        $color_scheme       = twentyfifteen_get_color_scheme();
    227227        $default_color      = $color_scheme[4];
    228         $sidebar_link_color = get_theme_mod( 'sidebar_textcolor', '#333333' );
     228        $sidebar_link_color = get_theme_mod( 'sidebar_textcolor', $default_color );
    229229
    230230        // Don't do anything if the current color is the default.
Note: See TracChangeset for help on using the changeset viewer.