[wp-trac] [WordPress Trac] #57635: Check if empty user_nicename in the function wp_insert_user

WordPress Trac noreply at wordpress.org
Fri Jun 6 08:29:51 UTC 2025


#57635: Check if empty user_nicename in the function wp_insert_user
--------------------------------------+----------------------------
 Reporter:  missveronicatv            |       Owner:  peterwilsoncc
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.9
Component:  Users                     |     Version:  6.1.1
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+----------------------------
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60288" 60288]:
 {{{
 #!CommitTicketReference repository="" revision="60288"
 Users: Prevent creating of empty usernames after sanitization.

 Introduces a check in `wp_insert_user()` to ensure the username doesn't
 have a length of zero after sanitization removes invalid characters.

 Props kalpeshh, missveronicatv, rayhatron, rinkalpagdar, sergeybiryukov,
 thehercules.
 Fixes #57635.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57635#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list