Skip to content

Commit 0be7269

Browse files
committed
2 parents dab2618 + a08b333 commit 0be7269

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

includes/collection/class-users.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public static function get_by_username( $username ) {
8686
// check for 'activitypub_username' meta
8787
$user = new WP_User_Query(
8888
array(
89+
'count_total' => false,
8990
'number' => 1,
9091
'hide_empty' => true,
9192
'fields' => 'ID',
@@ -110,6 +111,7 @@ public static function get_by_username( $username ) {
110111
// check for login or nicename.
111112
$user = new WP_User_Query(
112113
array(
114+
'count_total' => false,
113115
'search' => $username,
114116
'search_columns' => array( 'user_login', 'user_nicename' ),
115117
'number' => 1,

0 commit comments

Comments
 (0)