wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_favicon_request › WordPress Function

Da3.0.0
Deprecato5.4.0
wp_favicon_request ( Nessun parametro )
Definito a:
Codex:

Ensures all of WordPress is not loaded when handling a favicon.ico request.

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


Sorgenti

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