Use SCRIPT_NAME instead of REQUEST_URI because we target a php script anyway but we don't want the query string (#4)
This commit is contained in:
Родитель
b2fa4abef3
Коммит
221d44f861
|
@ -11,7 +11,7 @@ function addons_disable_frontend()
|
|||
global $wp;
|
||||
|
||||
$isAuth0Callback =
|
||||
$_SERVER['REQUEST_URI'] === '/index.php' &&
|
||||
$_SERVER['SCRIPT_NAME'] === '/index.php' &&
|
||||
!empty($_COOKIE['auth0_state']);
|
||||
|
||||
// We allow CRON tasks, REST API requests, requests to the admin interface,
|
||||
|
|
Загрузка…
Ссылка в новой задаче