Prelc / Purus-WP

Purus WordPress Theme
https://wordpress.org/themes/purus/
13 stars 2 forks source link

Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' #11

Open kdpuvvadi opened 5 years ago

kdpuvvadi commented 5 years ago

Just updated wordpress to 5.2.1 and getting this issue

Warning
: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP) in
/srv/users/serverpilot/apps/kdpuvvadi/public/wp-content/themes/Purus/functions.php
on line
73

On line 73 $path = $_SERVER['HTTP_HOST'] . $_SERVER[REQUEST_URI];

Prelc commented 5 years ago

Thanks for the notice about the error.

I am currently really busy, but I will take a look and fix it as soon as I find some extra time.

If somebody else is willing to fix it I will gladly accept the pull request.