Make WordPress Core

Ticket #38387: 38387.2.patch

File 38387.2.patch, 703 bytes (added by davidakennedy, 7 years ago)

Uses both xlink:href and href for future friendly markup plus a fallback.

  • src/wp-content/themes/twentyseventeen/inc/icon-functions.php

     
    102102         *
    103103         * See https://core.trac.wordpress.org/ticket/38387.
    104104         */
    105         $svg .= ' <use xlink:href="#icon-' . esc_html( $args['icon'] ) . '"></use> ';
     105        $svg .= ' <use href="#icon-' . esc_html( $args['icon'] ) . '" xlink:href="#icon-' . esc_html( $args['icon'] ) . '"></use> ';
    106106
    107107        // Add some markup to use as a fallback for browsers that do not support SVGs.
    108108        if ( $args['fallback'] ) {