WordPress.org

Make WordPress Core

Ticket #19742: ticket.19742.diff

File ticket.19742.diff, 1.2 KB (added by ptahdunbar, 18 months ago)
  • wp-includes/class.wp-styles.php

     
    7171                        $end_cond = "<![endif]-->\n"; 
    7272                } 
    7373 
    74                 $tag .= apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle ); 
     74                $tag .= apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle, $obj ); 
    7575                if ( 'rtl' === $this->text_direction && isset($obj->extra['rtl']) && $obj->extra['rtl'] ) { 
    7676                        if ( is_bool( $obj->extra['rtl'] ) ) { 
    7777                                $suffix = isset( $obj->extra['suffix'] ) ? $obj->extra['suffix'] : ''; 
     
    8080                                $rtl_href = $this->_css_href( $obj->extra['rtl'], $ver, "$handle-rtl" ); 
    8181                        } 
    8282 
    83                         $tag .= apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-rtl-css' $title href='$rtl_href' type='text/css' media='$media' />\n", $handle ); 
     83                        $tag .= apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-rtl-css' $title href='$rtl_href' type='text/css' media='$media' />\n", $handle, $obj ); 
    8484                } 
    8585 
    8686                $tag .= $end_cond;