WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#23192 closed enhancement

Use get_user_by() in is_user_spammy() — at Initial Version

Reported by: ocean90 Owned by:
Milestone: 3.6 Priority: normal
Severity: normal Version:
Component: Multisite Keywords: has-patch commit needs-unit-tests
Focuses: Cc:

Description

Comes up after reading #23190.

Since is_user_spammy expects a user name, we should replace it with get_user_by( 'login', $username ). Same for the id.

Change History (1)

@ocean903 years ago

Note: See TracTickets for help on using tickets.