Changeset 31031 for trunk/src/wp-includes/class.wp-styles.php
- Timestamp:
- 01/03/2015 04:09:12 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class.wp-styles.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-styles.php
r30681 r31031 108 108 } 109 109 110 if ( isset($obj->extra['conditional']) && $obj->extra['conditional'] ) { 111 $tag = "<!--[if {$obj->extra['conditional']}]>\n" . $tag . "<![endif]-->\n"; 110 $conditional_pre = $conditional_post = ''; 111 if ( isset( $obj->extra['conditional'] ) && $obj->extra['conditional'] ) { 112 $conditional_pre = "<!--[if {$obj->extra['conditional']}]>\n"; 113 $conditional_post = "<![endif]-->\n"; 112 114 } 113 115 114 116 if ( $this->do_concat ) { 117 $this->print_html .= $conditional_pre; 115 118 $this->print_html .= $tag; 116 if ( $inline_style = $this->print_inline_style( $handle, false ) ) 119 if ( $inline_style = $this->print_inline_style( $handle, false ) ) { 117 120 $this->print_html .= sprintf( "<style id='%s-inline-css' type='text/css'>\n%s\n</style>\n", esc_attr( $handle ), $inline_style ); 121 } 122 $this->print_html .= $conditional_post; 118 123 } else { 124 echo $conditional_pre; 119 125 echo $tag; 120 126 $this->print_inline_style( $handle ); 127 echo $conditional_post; 121 128 } 122 129
Note: See TracChangeset
for help on using the changeset viewer.