WordPress.org

Make WordPress Core

Ticket #42438: add_preload_to_ressource_hints.patch

File add_preload_to_ressource_hints.patch, 716 bytes (added by nico23, 2 years ago)

patch

  • wp-includes/general-template.php

    From e21042f1864b190759c3ddc7f6e3994f98e76261 Mon Sep 17 00:00:00 2001
    From: Nicolas Jonas <nnico@protonmail.com>
    Date: Sun, 5 Nov 2017 14:35:55 +0100
    Subject: [PATCH] Add preload to resource hints
    
    ---
     wp-includes/general-template.php | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
    index 915aea540e..ff39d9a73d 100644
    a b function wp_resource_hints() { 
    28772877                'dns-prefetch' => wp_dependencies_unique_hosts(),
    28782878                'preconnect'   => array(),
    28792879                'prefetch'     => array(),
     2880                'preload'      => array(),
    28802881                'prerender'    => array(),
    28812882        );
    28822883