WordPress.org

Make WordPress Core

Changeset 45884


Ignore:
Timestamp:
08/23/2019 01:15:16 AM (3 months ago)
Author:
SergeyBiryukov
Message:

Date/Time: Revert unintended changes from [45882].

Props TimothyBlynJacobs.
See #25768.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r45883 r45884  
    15661566     */
    15671567    echo apply_filters( 'robots_txt', $output, $public );
    1568 }
    1569 
    1570 /**
    1571  * Display the robots.txt file content.
    1572  *
    1573  * The echo content should be with usage of the permalinks or for creating the
    1574  * robots.txt file.
    1575  *
    1576  * @since 5.3.0
    1577  */
    1578 function do_favicon() {
    1579     /**
    1580      * Fires when serving the favicon.ico file.
    1581      *
    1582      * @since 5.3.0
    1583      */
    1584     do_action( 'do_faviconico' );
    1585 
    1586     wp_safe_redirect( esc_url( get_site_icon_url( 32, admin_url( 'images/w-logo-blue.png' ) ) ) );
    1587 
    1588 }
    1589 
    1590 /**
    1591  * Don't load all of WordPress when handling a favicon.ico request.
    1592  *
    1593  * Instead, send the headers for a zero-length favicon and bail.
    1594  *
    1595  * @since 3.0.0
    1596  */
    1597 function wp_favicon_request() {
    1598     if ( '/favicon.ico' == $_SERVER['REQUEST_URI'] ) {
    1599         header( 'Content-Type: image/vnd.microsoft.icon' );
    1600         exit;
    1601     }
    16021568}
    16031569
Note: See TracChangeset for help on using the changeset viewer.