PHP Notice about REQUEST_URI
-
In PHP 7+, there’s a notice about the variable $_SERVER[REQUEST_URI] in file includes/class-wp-notification-bars-shared.php, line 387.
if (in_array($_SERVER[REQUEST_URI], $allowedUrls) || empty($_SERVER[REQUEST_URI])) {
It can be fixed by changing it to this:
if (isset($_SERVER['REQUEST_URI']) && (in_array($_SERVER['REQUEST_URI'], $allowedUrls) || empty($_SERVER['REQUEST_URI']))) {
- The topic ‘PHP Notice about REQUEST_URI’ is closed to new replies.