WordPress.org

Make WordPress Core

Ticket #47398: 47398.diff

File 47398.diff, 616 bytes (added by mukesh27, 6 months ago)

Patch that remove wp_favicon_request function from wp-includes/load.php

  • wp-includes/load.php

    diff --git a/wp-includes/load.php b/wp-includes/load.php
    index fe97810ae5..57a02ff59a 100644
    a b function wp_check_php_mysql_versions() { 
    156156        }
    157157}
    158158
    159 /**
    160  * Don't load all of WordPress when handling a favicon.ico request.
    161  *
    162  * Instead, send the headers for a zero-length favicon and bail.
    163  *
    164  * @since 3.0.0
    165  */
    166 function wp_favicon_request() {
    167         if ( '/favicon.ico' == $_SERVER['REQUEST_URI'] ) {
    168                 header( 'Content-Type: image/vnd.microsoft.icon' );
    169                 exit;
    170         }
    171 }
    172 
    173159/**
    174160 * Die with a maintenance message when conditions are met.
    175161 *