Changeset 36550 for trunk/src/wp-includes/class.wp-styles.php
- Timestamp:
- 02/17/2016 05:10:53 PM (10 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
r33222 r36550 73 73 $media = 'all'; 74 74 75 // A single item may alias a set of items, by having dependencies, but no source. 76 if ( ! $obj->src ) { 77 if ( $inline_style = $this->print_inline_style( $handle, false ) ) { 78 $inline_style = sprintf( "<style id='%s-inline-css' type='text/css'>\n%s\n</style>\n", esc_attr( $handle ), $inline_style ); 79 if ( $this->do_concat ) { 80 $this->print_html .= $inline_style; 81 } else { 82 echo $inline_style; 83 } 84 } 85 return true; 86 } 87 75 88 $href = $this->_css_href( $obj->src, $ver, $handle ); 76 if ( empty( $href ) ) {77 // Turns out there is nothing to print.78 return true;79 }80 89 $rel = isset($obj->extra['alt']) && $obj->extra['alt'] ? 'alternate stylesheet' : 'stylesheet'; 81 90 $title = isset($obj->extra['title']) ? "title='" . esc_attr( $obj->extra['title'] ) . "'" : '';
Note: See TracChangeset
for help on using the changeset viewer.