WordPress.org

Make WordPress Core

Ticket #16118: 16118.patch

File 16118.patch, 773 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-includes/class.wp-styles.php

     
    6464                if ( isset($this->registered[$handle]->extra['conditional']) && $this->registered[$handle]->extra['conditional'] ) { 
    6565                        $tag .= "<!--[if {$this->registered[$handle]->extra['conditional']}]>\n"; 
    6666                        $end_cond = "<![endif]-->\n"; 
     67                        if ( '!' == $this->registered[$handle]->extra['conditional'][0] ) { 
     68                                $tag = trim($tag) . "-->\n"; 
     69                                $end_cond = '<!--' . $end_cond; 
     70                        } 
    6771                } 
    6872 
    6973                $tag .= apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle );