Check for HTTP_USER_AGENT?
-
Hi,
I feel like there should be a check in wp-quicklatex.php, around line 1719, for HTTP_USER_AGENT. Maybe something like:
// Do not count bots since they are not users and we are looking for user experience.
if ( isset($_SERVER['HTTP_USER_AGENT']) ) { $agent = strtolower($_SERVER['HTTP_USER_AGENT']); }
else { $agent = 'Unknown'; }This would avoid PHP complaints like:
PHP Notice: Undefined index: HTTP_USER_AGENT in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wp-quicklatex/wp-quicklatex.php on line 1719
Does that make any sense?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.