Changeset 45884
- Timestamp:
- 08/23/2019 01:15:16 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r45883 r45884 1566 1566 */ 1567 1567 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 the1574 * robots.txt file.1575 *1576 * @since 5.3.01577 */1578 function do_favicon() {1579 /**1580 * Fires when serving the favicon.ico file.1581 *1582 * @since 5.3.01583 */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.01596 */1597 function wp_favicon_request() {1598 if ( '/favicon.ico' == $_SERVER['REQUEST_URI'] ) {1599 header( 'Content-Type: image/vnd.microsoft.icon' );1600 exit;1601 }1602 1568 } 1603 1569
Note: See TracChangeset
for help on using the changeset viewer.