Make WordPress Core

Ticket #46135: 43135.diff

File 43135.diff, 721 bytes (added by sebastienserre, 6 years ago)
  • wp-includes/load.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    157157 * @since 3.0.0
    158158 */
    159159function wp_favicon_request() {
     160        /**
     161         * Filters whether to allow the favicon to be display.
     162         *
     163         * @since 4.6.0
     164         *
     165         * @param bool $enable_wp_favicon Whether to enable favicon use. Default true.
     166         */
     167        if ( ! apply_filters( 'enable_wp_favicon', true ) ) {
     168                return;
     169        }
     170
    160171        if ( '/favicon.ico' == $_SERVER['REQUEST_URI'] ) {
    161172                header( 'Content-Type: image/vnd.microsoft.icon' );
    162173                exit;