我通过在函数中编辑一行来解决这个问题。php,它不再为我显示错误消息。错误是:
Warning: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ (this will throw an Error in a future version of PHP) in /var/www/web33/web/wp-content/themes/slanted-master/functions.php on line 73
所以在函数的第73行。php我将错误消息中提到的行更改为:
$path = $_SERVER[\'HTTP_HOST\'] . $_SERVER[\'REQUEST_URI\'];