[PATCH] Use of undefined constant HTTP_HOST
-
With WP_Debug turned on I was getting:
Notice: Use of undefined constant HTTP_HOST – assumed ‘HTTP_HOST’ in /path/to/wp-content/plugins/qrcode-wprhe/qrcode_wprhe.php on line 50
Change
$current_uri = 'https://' . $_SERVER[HTTP_HOST] . $_SERVER[REQUEST_URI] . '';
to
$current_uri = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '';
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[PATCH] Use of undefined constant HTTP_HOST’ is closed to new replies.