mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +01:00
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
This commit is contained in:
parent
ea6c9a5515
commit
a1c08b7660
@ -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
Block a user