Changeset 58878 for trunk/src/wp-includes/class-wp-styles.php
- Timestamp:
- 08/10/2024 10:58:07 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-styles.php
r55703 r58878 166 166 } 167 167 168 $src = $obj->src;169 $ cond_before= '';170 $ cond_after= '';171 $conditional = isset( $obj->extra['conditional'] ) ? $obj->extra['conditional'] : '';168 $src = $obj->src; 169 $ie_conditional_prefix = ''; 170 $ie_conditional_suffix = ''; 171 $conditional = isset( $obj->extra['conditional'] ) ? $obj->extra['conditional'] : ''; 172 172 173 173 if ( $conditional ) { 174 $ cond_before= "<!--[if {$conditional}]>\n";175 $ cond_after= "<![endif]-->\n";174 $ie_conditional_prefix = "<!--[if {$conditional}]>\n"; 175 $ie_conditional_suffix = "<![endif]-->\n"; 176 176 } 177 177 … … 280 280 281 281 if ( $this->do_concat ) { 282 $this->print_html .= $ cond_before;282 $this->print_html .= $ie_conditional_prefix; 283 283 $this->print_html .= $tag; 284 284 if ( $inline_style_tag ) { 285 285 $this->print_html .= $inline_style_tag; 286 286 } 287 $this->print_html .= $ cond_after;287 $this->print_html .= $ie_conditional_suffix; 288 288 } else { 289 echo $ cond_before;289 echo $ie_conditional_prefix; 290 290 echo $tag; 291 291 $this->print_inline_style( $handle ); 292 echo $ cond_after;292 echo $ie_conditional_suffix; 293 293 } 294 294 … … 369 369 */ 370 370 public function all_deps( $handles, $recursion = false, $group = false ) { 371 $r = parent::all_deps( $handles, $recursion, $group );371 $result = parent::all_deps( $handles, $recursion, $group ); 372 372 if ( ! $recursion ) { 373 373 /** … … 380 380 $this->to_do = apply_filters( 'print_styles_array', $this->to_do ); 381 381 } 382 return $r ;382 return $result; 383 383 } 384 384
Note: See TracChangeset
for help on using the changeset viewer.