Make WordPress Core

Ticket #46135: 43135.1.diff

File 43135.1.diff, 706 bytes (added by priyankkpatel, 6 years ago)

Patch for wp-admin/load.php with filter added.

  • src/wp-includes/load.php

     src/wp-includes/load.php | 11 +++++++++++
     1 file changed, 11 insertions(+)
    
    diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php
    index fe97810ae5..0c5acef45c 100644
    a b function wp_check_php_mysql_versions() { 
    164164 * @since 3.0.0
    165165 */
    166166function wp_favicon_request() {
     167        /**
     168         * Filters whether to display favicon.
     169         *
     170         * @since 4.6.0
     171         *
     172         * @param bool $enable_wp_favicon Whether to enable favicon. Default true.
     173         */
     174        if ( ! apply_filters( 'enable_wp_favicon', true ) ) {
     175                return;
     176        }
     177
    167178        if ( '/favicon.ico' == $_SERVER['REQUEST_URI'] ) {
    168179                header( 'Content-Type: image/vnd.microsoft.icon' );
    169180                exit;