[wp-trac] [WordPress Trac] #31305: wp_favicon_request function
WordPress Trac
noreply at wordpress.org
Thu Feb 12 09:39:12 UTC 2015
#31305: wp_favicon_request function
---------------------------+-----------------------------
Reporter: dugi digitaly | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.1
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
wp_favicon_request function not work if wordpress installed on directory
like www.domain.com/wp/
$_SERVER['REQUEST_URI'] is wp/favicon.ico
{{{
// www.domain.com/wp/
// $_SERVER['REQUEST_URI'] is 'wp/favicon.ico' <--
function wp_favicon_request() {
if ( '/favicon.ico' == $_SERVER['REQUEST_URI'] ) {
header('Content-Type: image/vnd.microsoft.icon');
header('Content-Length: 0');
exit;
}
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31305>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list