Ticket #32660: #32660_add_.patch
File #32660_add_.patch, 1.4 KB (added by , 10 years ago) |
---|
-
wp-includes/class.wp-styles.php
87 87 * 88 88 * @param string The link tag for the enqueued style. 89 89 * @param string $handle The style's registered handle. 90 * @param string $src The asset's source URL. 90 91 */ 91 $tag = apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle );92 $tag = apply_filters( 'style_loader_tag', "<link rel='$rel' id='$handle-css' $title href='$href' type='text/css' media='$media' />\n", $handle, $href ); 92 93 if ( 'rtl' === $this->text_direction && isset($obj->extra['rtl']) && $obj->extra['rtl'] ) { 93 94 if ( is_bool( $obj->extra['rtl'] ) || 'replace' === $obj->extra['rtl'] ) { 94 95 $suffix = isset( $obj->extra['suffix'] ) ? $obj->extra['suffix'] : ''; … … 98 99 } 99 100 100 101 /** This filter is documented in wp-includes/class.wp-styles.php */ 101 $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 );102 $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 ); 102 103 103 104 if ( $obj->extra['rtl'] === 'replace' ) { 104 105 $tag = $rtl_tag;