WordPress.org

Make WordPress Core

Ticket #48112: 48112.diff

File 48112.diff, 651 bytes (added by davidbaumwald, 2 years ago)

Patch

  • src/wp-includes/theme.php

    diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php
    index e4cc8802f5..3de00067e3 100644
    a b function _custom_background_cb() { 
    17011701                $attachment = " background-attachment: $attachment;";
    17021702
    17031703                $style .= $image . $position . $size . $repeat . $attachment;
    1704 
    1705                 $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
    17061704        }
     1705
     1706        $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
    17071707        ?>
    17081708<style<?php echo $type_attr; ?> id="custom-background-css">
    17091709body.custom-background { <?php echo trim( $style ); ?> }