Opened 11 years ago
Closed 11 years ago
#31305 closed defect (bug) (duplicate)
wp_favicon_request function
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 3.0 |
| Component: | General | Keywords: | |
| Focuses: | Cc: |
Description
wp_favicon_request function not work if wordpress installed on directory like www.domain.com/wp/
$_SERVERREQUEST_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;
}
}
Change History (3)
Note: See
TracTickets for help on using
tickets.
my alternative is