WordPress.org

Make WordPress Core

Changeset 43698


Ignore:
Timestamp:
10/11/2018 03:29:54 AM (14 months ago)
Author:
SergeyBiryukov
Message:

Twenty Sixteen: Revert [43607] from the 4.9 branch.

This change is out of the 4.9.x scope, and will be reintroduced in 5.1.x.

See #44668.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

    • Property svn:mergeinfo changed
      /trunkreverse-merged: 43606
  • branches/4.9/src/wp-content/themes/twentysixteen/functions.php

    r43607 r43698  
    146146
    147147/**
    148  * Add preconnect for Google Fonts.
    149  *
    150  * @since Twenty Sixteen 1.6
    151  *
    152  * @param array  $urls           URLs to print for resource hints.
    153  * @param string $relation_type  The relation type the URLs are printed.
    154  * @return array $urls           URLs to print for resource hints.
    155  */
    156 function twentysixteen_resource_hints( $urls, $relation_type ) {
    157     if ( wp_style_is( 'twentysixteen-fonts', 'queue' ) && 'preconnect' === $relation_type ) {
    158         $urls[] = array(
    159             'href' => 'https://fonts.gstatic.com',
    160             'crossorigin',
    161         );
    162     }
    163 
    164     return $urls;
    165 }
    166 add_filter( 'wp_resource_hints', 'twentysixteen_resource_hints', 10, 2 );
    167 
    168 /**
    169148 * Registers a widget area.
    170149 *
Note: See TracChangeset for help on using the changeset viewer.