[wp-trac] [WordPress Trac] #27374: Notice in comments-template.php for HTTP_USER_AGENT

WordPress Trac noreply at wordpress.org
Wed Mar 12 12:15:30 UTC 2014


#27374: Notice in comments-template.php for HTTP_USER_AGENT
--------------------------+-----------------------------
 Reporter:  joostdevalk   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 This generates a notice when the user agent isn't set, on line 947 of
 comment-template.php currently:

 {{{
 if ( false !== stripos($_SERVER['HTTP_USER_AGENT'], 'W3C_Validator') )
         return;
 }}}

 Simply checking whether HTTP_USER_AGENT is set would fix it, of course.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27374>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list