Make WordPress Core

Changeset 46270


Ignore:
Timestamp:
09/23/2019 08:08:04 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Themes: After [46164], make sure $type_attr is always defined in _custom_background_cb().

Props davidbaumwald.
Fixes #48112.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r46164 r46270  
    16471647        }
    16481648
     1649        $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
     1650
    16491651        if ( ! $background && ! $color ) {
    16501652                if ( is_customize_preview() ) {
    1651                         $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
    16521653                        printf( '<style%s id="custom-background-css"></style>', $type_attr );
    16531654                }
    … …  
    17021703
    17031704                $style .= $image . $position . $size . $repeat . $attachment;
    1704 
    1705                 $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
    17061705        }
    17071706        ?>
Note: See TracChangeset for help on using the changeset viewer.