Changeset 46088 for trunk/src/wp-includes/class.wp-styles.php
- Timestamp:
- 09/10/2019 07:22:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class.wp-styles.php
r45590 r46088 200 200 $title = isset( $obj->extra['title'] ) ? "title='" . esc_attr( $obj->extra['title'] ) . "'" : ''; 201 201 202 $tag = "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n"; 203 202 204 /** 203 205 * Filters the HTML link tag of an enqueued style. … … 212 214 * @param string $media The stylesheet's media attribute. 213 215 */ 214 $tag = apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle, $href, $media );216 $tag = apply_filters( 'style_loader_tag', $tag, $handle, $href, $media ); 215 217 216 218 if ( 'rtl' === $this->text_direction && isset( $obj->extra['rtl'] ) && $obj->extra['rtl'] ) { … … 222 224 } 223 225 226 $rtl_tag = "<link rel='$rel' id='$handle-rtl-css' $title href='$rtl_href' type='text/css' media='$media' />\n"; 224 227 /** This filter is documented in wp-includes/class.wp-styles.php */ 225 $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, $rtl_href, $media );228 $rtl_tag = apply_filters( 'style_loader_tag', $rtl_tag, $handle, $rtl_href, $media ); 226 229 227 230 if ( $obj->extra['rtl'] === 'replace' ) {
Note: See TracChangeset
for help on using the changeset viewer.