From 74fdc2b628be90fb3195e01ba1d01cb420b67664 Mon Sep 17 00:00:00 2001 From: thanghv Date: Tue, 9 Jun 2020 01:49:54 +0700 Subject: [PATCH] Fixed error. --- class/class-mainwp-child-users.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class/class-mainwp-child-users.php b/class/class-mainwp-child-users.php index 6e9be9a..b747997 100644 --- a/class/class-mainwp-child-users.php +++ b/class/class-mainwp-child-users.php @@ -221,7 +221,7 @@ class MainWP_Child_Users { continue; } - $user_query = new WP_User_Query( + $user_query = new \WP_User_Query( array( 'search' => $_POST['search'], 'fields' => 'all_with_meta', @@ -512,7 +512,7 @@ class MainWP_Child_Users { } if ( $send_password ) { - $user = new WP_User( $new_user_id ); + $user = new \WP_User( $new_user_id ); $user_login = stripslashes( $user->user_login ); $user_email = stripslashes( $user->user_email );