Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_favicon_request [ WordPress Function ]

wp_favicon_request ( No parameters )
Defined at:



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

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

Source


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

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics