[wp-trac] [WordPress Trac] #17682: Browser nag PHP Notice if no user agent is set
WordPress Trac
wp-trac at lists.automattic.com
Sat Jun 4 08:51:19 UTC 2011
#17682: Browser nag PHP Notice if no user agent is set
------------------------------+-----------------------
Reporter: duck_ | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.2
Component: Warnings/Notices | Version: 3.2
Severity: normal | Keywords: has-patch
------------------------------+-----------------------
Not too likely to happen in practice, but it's possible and I ran across
it today.
{{{
Notice: Undefined index: HTTP_USER_AGENT in /srv/www/wp.dev/public/wp-
admin/includes/dashboard.php on line 1201
Notice: Undefined index: HTTP_USER_AGENT in /srv/www/wp.dev/public/wp-
admin/includes/dashboard.php on line 1207
}}}
Patch has added benefit of not hitting the .org API if there is no user
agent to send.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17682>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list