[wp-trac] [WordPress Trac] #25861: favicon requests not caught when WP is installed in a subfolder

WordPress Trac noreply at wordpress.org
Thu Nov 7 08:40:14 UTC 2013


#25861: favicon requests not caught when WP is installed in a subfolder
-------------------------------+-----------------------------
 Reporter:  Denis-de-Bernardy  |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Performance        |    Version:  3.7.1
 Severity:  minor              |   Keywords:
-------------------------------+-----------------------------
 We introduced a favicon.ico handler four years ago, but it only handles
 requests on sites installed in a root folder.

 In case the attached git diff doesn't want to apply to svn, it basically
 amends the first line of wp_favicon_request() in wp-includes/load.php,
 like so:

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

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25861>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list