We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebe1519 commit 29c36ccCopy full SHA for 29c36cc
1 file changed
src/wp-includes/abilities/class-wp-users-abilities.php
@@ -211,7 +211,7 @@ private static function get_user_output_schema(): array {
211
* @return WP_User|false The user object if found, false otherwise.
212
*/
213
private static function find_user( array $input ) {
214
- if ( ! empty( $input['id'] ) ) {
+ if ( ! empty( $input['id'] ) && $input['id'] > 0 ) {
215
return get_user_by( 'ID', (int) $input['id'] );
216
}
217
0 commit comments