Give custom background CSS more specificity. props GaryJ. fixes #18698
git-svn-id: http://svn.automattic.com/wordpress/trunk@18886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
15920fc45b
commit
37aae9f46f
|
@ -507,6 +507,9 @@ function get_body_class( $class = '' ) {
|
|||
if ( is_admin_bar_showing() )
|
||||
$classes[] = 'admin-bar';
|
||||
|
||||
if ( get_background_image() || get_background_color() )
|
||||
$classes[] = 'custom-background';
|
||||
|
||||
$page = $wp_query->get( 'page' );
|
||||
|
||||
if ( !$page || $page < 2)
|
||||
|
|
|
@ -1793,7 +1793,7 @@ function _custom_background_cb() {
|
|||
}
|
||||
?>
|
||||
<style type="text/css">
|
||||
body { <?php echo trim( $style ); ?> }
|
||||
body.custom-background { <?php echo trim( $style ); ?> }
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue