diff --git src/wp-includes/theme.php src/wp-includes/theme.php
index 9bab1fd..0e33800 100644
|
|
function _custom_background_cb() { |
1333 | 1333 | |
1334 | 1334 | $style .= $image . $repeat . $position . $attachment; |
1335 | 1335 | } |
| 1336 | |
| 1337 | $selector = get_theme_support( 'custom-background', 'element-selector' ); |
1336 | 1338 | ?> |
1337 | 1339 | <style type="text/css" id="custom-background-css"> |
1338 | | body.custom-background { <?php echo trim( $style ); ?> } |
| 1340 | <?php echo $selector; ?> { <?php echo trim( $style ); ?> } |
1339 | 1341 | </style> |
1340 | 1342 | <?php |
1341 | 1343 | } |
… |
… |
function add_theme_support( $feature ) { |
1528 | 1530 | 'wp-head-callback' => '_custom_background_cb', |
1529 | 1531 | 'admin-head-callback' => '', |
1530 | 1532 | 'admin-preview-callback' => '', |
| 1533 | 'element-selector' => 'body.custom-background', |
1531 | 1534 | ); |
1532 | 1535 | |
1533 | 1536 | $jit = isset( $args[0]['__jit'] ); |