WordPress.org

Make WordPress Core

Ticket #30032: 30032.1.diff

File 30032.1.diff, 682 bytes (added by georgestephanis, 6 years ago)
  • src/wp-includes/class.wp-styles.php

     
    110110                if ( $this->do_concat ) {
    111111                        $this->print_html .= $tag;
    112112                        if ( $inline_style = $this->print_inline_style( $handle, false ) )
    113                                 $this->print_html .= sprintf( "<style type='text/css'>\n%s\n</style>\n", $inline_style );
     113                                $this->print_html .= sprintf( "<style id='wp-inline-style-" . esc_attr( $handle ) . "' type='text/css'>\n%s\n</style>\n", $inline_style );
    114114                } else {
    115115                        echo $tag;
    116116                        $this->print_inline_style( $handle );