WordPress开发者和主题制作者的搜索引擎



wp_favicon_request ›

Since3.0.0
已弃用n/a
wp_favicon_request ( 没有参数 )
定义在:
文档:

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

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



源码

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