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

props obenland.
fixes #22030.


git-svn-id: https://develop.svn.wordpress.org/trunk@27703 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-03-25 11:52:56 +00:00
parent 2e1f98d2a0
commit 5653356188
1 changed files with 5 additions and 1 deletions

View File

@ -1284,7 +1284,11 @@ function _custom_background_cb() {
// $color is the saved custom color.
// A default has to be specified in style.css. It will not be printed here.
$color = get_theme_mod( 'background_color' );
$color = get_background_color();
if ( $color === get_theme_support( 'custom-background', 'default-color' ) ) {
$color = false;
}
if ( ! $background && ! $color )
return;