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:
markjaquith 2011-10-05 17:20:43 +00:00
parent 15920fc45b
commit 37aae9f46f
2 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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
}