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:
parent
2e1f98d2a0
commit
5653356188
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue