wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_favicon_request › WordPress Function

Od3.0.0
Przestarzały5.4.0
wp_favicon_request ( Brak parametrów )
Zdefiniowane na:
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.


Źródło

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