Changeset 26107 for trunk/src/wp-includes/class.wp-styles.php
- Timestamp:
- 11/12/2013 09:18:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-styles.php
r25786 r26107 66 66 $title = isset($obj->extra['title']) ? "title='" . esc_attr( $obj->extra['title'] ) . "'" : ''; 67 67 68 $end_cond = $tag = ''; 69 if ( isset($obj->extra['conditional']) && $obj->extra['conditional'] ) { 70 $tag .= "<!--[if {$obj->extra['conditional']}]>\n"; 71 $end_cond = "<![endif]-->\n"; 72 } 73 74 $tag .= apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle ); 68 $tag = apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle ); 75 69 if ( 'rtl' === $this->text_direction && isset($obj->extra['rtl']) && $obj->extra['rtl'] ) { 76 if ( is_bool( $obj->extra['rtl'] ) ) {70 if ( is_bool( $obj->extra['rtl'] ) || 'replace' === $obj->extra['rtl'] ) { 77 71 $suffix = isset( $obj->extra['suffix'] ) ? $obj->extra['suffix'] : ''; 78 72 $rtl_href = str_replace( "{$suffix}.css", "-rtl{$suffix}.css", $this->_css_href( $obj->src , $ver, "$handle-rtl" )); … … 81 75 } 82 76 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 ); 77 $rtl_tag = apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-rtl-css' $title href='$rtl_href' type='text/css' media='$media' />\n", $handle ); 78 79 if ( $obj->extra['rtl'] === 'replace' ) { 80 $tag = $rtl_tag; 81 } else { 82 $tag .= $rtl_tag; 83 } 84 84 } 85 85 86 $tag .= $end_cond; 86 if ( isset($obj->extra['conditional']) && $obj->extra['conditional'] ) { 87 $tag = "<!--[if {$obj->extra['conditional']}]>\n" . $tag . "<![endif]-->\n"; 88 } 87 89 88 90 if ( $this->do_concat ) {
Note: See TracChangeset
for help on using the changeset viewer.