From 5653356188a5a11851b1beccd5d3c4b5ad64a0cd Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 25 Mar 2014 11:52:56 +0000 Subject: [PATCH] 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 --- src/wp-includes/theme.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 5b62fa4ea3..d643a9e289 100644 --- a/src/wp-includes/theme.php +++ b/src/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;