Skip to content
Permalink
Browse files

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.

git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43698 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Oct 11, 2018
1 parent 5d8518a commit a7b3d4a30e025d5313dfd011c2fb98a158a7ac2d
Showing with 0 additions and 21 deletions.
  1. +0 −21 src/wp-content/themes/twentysixteen/functions.php
@@ -144,27 +144,6 @@ function twentysixteen_content_width() {
}
add_action( 'after_setup_theme', 'twentysixteen_content_width', 0 );
/**
* Add preconnect for Google Fonts.
*
* @since Twenty Sixteen 1.6
*
* @param array $urls URLs to print for resource hints.
* @param string $relation_type The relation type the URLs are printed.
* @return array $urls URLs to print for resource hints.
*/
function twentysixteen_resource_hints( $urls, $relation_type ) {
if ( wp_style_is( 'twentysixteen-fonts', 'queue' ) && 'preconnect' === $relation_type ) {
$urls[] = array(
'href' => 'https://fonts.gstatic.com',
'crossorigin',
);
}
return $urls;
}
add_filter( 'wp_resource_hints', 'twentysixteen_resource_hints', 10, 2 );
/**
* Registers a widget area.
*

0 comments on commit a7b3d4a

Please sign in to comment.
You can’t perform that action at this time.