워드프레스 REQUEST_URI 에러 해결법

2019. 2. 21. 01:16워드프레스 정보창고/워드프레스 SEO 최적화

Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' in /www/docs/wordpress/wp-content/themes/twentyfifteen/functions.php on line 73

워드프레스 PHP버전에 따라 출력되는 에러유형으로

$path = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

REQUEST_URI 앞뒤에 '' 를 붙여주면 해결됨.