Make WordPress Core

Changeset 27703


Ignore:
Timestamp:
03/25/2014 11:52:56 AM (11 years ago)
Author:
nacin
Message:

Custom backgrounds: Do not print the default background color when it has been saved to the DB.

props obenland.
fixes #22030.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r27575 r27703  
    12851285    // $color is the saved custom color.
    12861286    // A default has to be specified in style.css. It will not be printed here.
    1287     $color = get_theme_mod( 'background_color' );
     1287    $color = get_background_color();
     1288
     1289    if ( $color === get_theme_support( 'custom-background', 'default-color' ) ) {
     1290        $color = false;
     1291    }
    12881292
    12891293    if ( ! $background && ! $color )
Note: See TracChangeset for help on using the changeset viewer.