From 6f7dda274dff811961aa9e487dd53568082f198d Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Tue, 10 Oct 2023 16:52:26 +0200 Subject: [PATCH] No longer use `Server::get()` function, will be removed. --- src/NotificationsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NotificationsController.php b/src/NotificationsController.php index b56419c..564ea6e 100644 --- a/src/NotificationsController.php +++ b/src/NotificationsController.php @@ -69,7 +69,7 @@ public function maybe_disable_application_passwords_for_api_request( $is_api_req * Check if request URI contains the integration REST route namespace, * parsed REST request is not yet available at this point during WordPress bootstrap. */ - if ( false === \stripos( Server::get( 'REQUEST_URI' ), Integration::REST_ROUTE_NAMESPACE ) ) { + if ( false === \stripos( \get_self_link(), Integration::REST_ROUTE_NAMESPACE ) ) { return $is_api_request; }