Make WordPress Core

Changeset 30933


Ignore:
Timestamp:
12/16/2014 09:38:07 PM (10 years ago)
Author:
nacin
Message:

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

Merges [30932] to the 4.1 branch.

props iamtakashi.
see #30733.

Location:
branches/4.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

  • branches/4.1/src/wp-content/themes/twentyfifteen/inc/custom-header.php

    r30814 r30933  
    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.