Undefined index notice for $_SERVER[‘HTTP_ACCEPT’]
-
We’re getting lots of notices in our logs.
PHP Notice: Undefined index: HTTP_ACCEPT in /home/user/public_html/wp-content/plugins/wp-enable-webp/wp-enable-webp.php on line 26
Line 26 should be changed to this to avoid them:
if( isset( $_SERVER['HTTP_ACCEPT'] ) && strpos( $_SERVER['HTTP_ACCEPT'], 'image/webp' ) !== false ) {
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Undefined index notice for $_SERVER[‘HTTP_ACCEPT’]’ is closed to new replies.