A WordPress-centric search engine for devs and theme authors



wp_favicon_request ›

Since3.0.0
Deprecatedn/a
wp_favicon_request ( No parameters )
Defined at:
Codex:

Don't load all of WordPress when handling a favicon.ico request.

Instead, send the headers for a zero-length favicon and bail.



Source

function wp_favicon_request() {
	if ( '/favicon.ico' == $_SERVER['REQUEST_URI'] ) {
		header( 'Content-Type: image/vnd.microsoft.icon' );
		exit;
	}
}