wp_favicon_request()

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


Description Description

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


Source Source

File: wp-includes/load.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.