From 2dd27fa2f7d805d5c180ed3e2f955768a12285c2 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Thu, 13 Jun 2024 14:03:06 +0530 Subject: [PATCH] sso fixes, fixed uncaught error --- includes/Services/MigrationSSO.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Services/MigrationSSO.php b/includes/Services/MigrationSSO.php index 223668e..929244f 100644 --- a/includes/Services/MigrationSSO.php +++ b/includes/Services/MigrationSSO.php @@ -1,7 +1,7 @@ 'ID', // Retrieve only the ID field ); - $user_query = new WP_User_Query( $args ); + $user_query = new \WP_User_Query( $args ); // Get the results $user_ids = $user_query->get_results(); @@ -37,7 +37,7 @@ public static function get_magic_login_url() { ) ); - // Return token and the magic login URL - return rest_ensure_response( admin_url( '/admin-ajax.php' ) . "?{$query_string}" ); + $response = rest_ensure_response( admin_url( '/admin-ajax.php' ) . "?{$query_string}" ); + return $response; } }