Skip to content

Commit

Permalink
No longer use Server::get() function, will be removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Oct 10, 2023
1 parent 451bb33 commit 6f7dda2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NotificationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6f7dda2

Please sign in to comment.