Warning: This function has been deprecated. Deprecated in favor of do_favicon() instead.
wp_favicon_request()
Don’t load all of WordPress when handling a favicon.ico request.
Description
Instead, send the headers for a zero-length favicon and bail.
Source
File: wp-includes/load.php
function wp_favicon_request() { if ( '/favicon.ico' === $_SERVER['REQUEST_URI'] ) { header( 'Content-Type: image/vnd.microsoft.icon' ); exit; } }
Expand full source code Collapse full source code View on Trac View on GitHub
Changelog
Version | Description |
---|---|
5.4.0 | Deprecated in favor of do_favicon(). |
3.0.0 | Introduced. |