Make WordPress Core

Ticket #16118: sanchothefat-01052012-class.wp-styles.php.patch

File sanchothefat-01052012-class.wp-styles.php.patch, 772 bytes (added by sanchothefat, 12 years ago)

A new patch that handles complex as well as non IE CCs.

  • class.wp-styles.php

     
    6868                $end_cond = $tag = '';
    6969                if ( isset($obj->extra['conditional']) && $obj->extra['conditional'] ) {
    7070                        $tag .= "<!--[if {$obj->extra['conditional']}]>\n";
    71                         $end_cond = "<![endif]-->\n";
     71                        if ( strstr( $obj->extra[ 'conditional' ], '!IE' ) ) {
     72                                        $tag .= '<!-->';
     73                                        $end_cond = '<!--';
     74                        }
     75                        $tag .= "\n";
     76                        $end_cond .= "<![endif]-->\n";
    7277                }
    7378
    7479                $tag .= apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle );
     
    168173                $this->print_html = '';
    169174        }
    170175}
    171