diff --git a/includes/collection/class-users.php b/includes/collection/class-users.php index adb98bb2d..b210504e9 100644 --- a/includes/collection/class-users.php +++ b/includes/collection/class-users.php @@ -86,6 +86,7 @@ public static function get_by_username( $username ) { // check for 'activitypub_username' meta $user = new WP_User_Query( array( + 'count_total' => false, 'number' => 1, 'hide_empty' => true, 'fields' => 'ID', @@ -110,6 +111,7 @@ public static function get_by_username( $username ) { // check for login or nicename. $user = new WP_User_Query( array( + 'count_total' => false, 'search' => $username, 'search_columns' => array( 'user_login', 'user_nicename' ), 'number' => 1,