Make WordPress Core

Ticket #32660: #32660_add_.patch

File #32660_add_.patch, 1.4 KB (added by nicholas_io, 9 years ago)

Patch that's add the $src attribute.

  • wp-includes/class.wp-styles.php

     
    8787                 *
    8888                 * @param string         The link tag for the enqueued style.
    8989                 * @param string $handle The style's registered handle.
     90                 * @param string $src    The asset's source URL.
    9091                 */
    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 );
    9293                if ( 'rtl' === $this->text_direction && isset($obj->extra['rtl']) && $obj->extra['rtl'] ) {
    9394                        if ( is_bool( $obj->extra['rtl'] ) || 'replace' === $obj->extra['rtl'] ) {
    9495                                $suffix = isset( $obj->extra['suffix'] ) ? $obj->extra['suffix'] : '';
     
    9899                        }
    99100
    100101                        /** 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 );
    102103
    103104                        if ( $obj->extra['rtl'] === 'replace' ) {
    104105                                $tag = $rtl_tag;