From a1c08b76608ff89bf830de0d12a443ce7d8547fe Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 25 Mar 2014 11:53:14 +0000 Subject: [PATCH] Custom backgrounds: Do not print the default background color when it has been saved to the DB. props obenland. fixes #22030. Built from https://develop.svn.wordpress.org/trunk@27703 git-svn-id: http://core.svn.wordpress.org/trunk@27542 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 5b62fa4ea3..d643a9e289 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -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;