We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dab2618 + a08b333 commit 0be7269Copy full SHA for 0be7269
includes/collection/class-users.php
@@ -86,6 +86,7 @@ public static function get_by_username( $username ) {
86
// check for 'activitypub_username' meta
87
$user = new WP_User_Query(
88
array(
89
+ 'count_total' => false,
90
'number' => 1,
91
'hide_empty' => true,
92
'fields' => 'ID',
@@ -110,6 +111,7 @@ public static function get_by_username( $username ) {
110
111
// check for login or nicename.
112
113
114
115
'search' => $username,
116
'search_columns' => array( 'user_login', 'user_nicename' ),
117
0 commit comments