mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Custom background fixes:
* Specify default background colors for the bundled themes. * Change the default custom background callback to only operate on saved values, rather than default values. * Prevent an unsaved default value from overriding a manually modified style.css file. Props nacin, kobenland fixes #20448 git-svn-id: https://develop.svn.wordpress.org/trunk@20973 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -501,7 +501,10 @@ function get_body_class( $class = '' ) {
|
||||
if ( is_admin_bar_showing() )
|
||||
$classes[] = 'admin-bar';
|
||||
|
||||
if ( get_background_image() || get_background_color() )
|
||||
if ( get_theme_mod( 'background_image' ) || get_theme_mod( 'background_color' ) ||
|
||||
( '_custom_background_cb' != get_theme_support( 'custom-background', 'wp-head-callback' )
|
||||
&& ( get_theme_support( 'custom-background', 'default-image' ) ||
|
||||
get_theme_support( 'custom-background', 'default-color' ) ) ) )
|
||||
$classes[] = 'custom-background';
|
||||
|
||||
$page = $wp_query->get( 'page' );
|
||||
|
||||
Reference in New Issue
Block a user