#27374 closed defect (bug) (fixed)
Notice in comments-template.php for HTTP_USER_AGENT
| Reported by: | joostdevalk | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | Comments | Version: | 0.71 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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.
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Comment Template Patch