WordPress.org

Make WordPress Core

Ticket #40426: general-template.php.diff

File general-template.php.diff, 599 bytes (added by joelhardi, 3 years ago)

patch to remove hard-coded dns-prefetch of s.w.org domain name

  • general-template.php

     
    28402840                'prerender'    => array(),
    28412841        );
    28422842
    2843         /*
    2844          * Add DNS prefetch for the Emoji CDN.
    2845          * The path is removed in the foreach loop below.
    2846          */
    2847         /** This filter is documented in wp-includes/formatting.php */
    2848         $hints['dns-prefetch'][] = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2.2.1/svg/' );
    2849 
    28502843        foreach ( $hints as $relation_type => $urls ) {
    28512844                $unique_urls = array();
    28522845