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

WordPress Trac noreply at wordpress.org
Wed Feb 8 19:43:50 UTC 2023


#57635: Check if empty user_nicename in the function wp_insert_user
-------------------------------------------------+-------------------------
 Reporter:  missveronicatv                       |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Users                                |     Version:  6.1.1
 Severity:  normal                               |  Resolution:
 Keywords:  needs-patch good-first-bug needs-    |     Focuses:
  testing-info 2nd-opinion                       |
-------------------------------------------------+-------------------------

Comment (by missveronicatv):

 You are right.
 If {{{ $user_login }}} is a "dot" after
 {{{
 $sanitized_user_login = sanitize_user( $userdata['user_login'], true );
 }}}
 This "dot" will be removed in
 {{{
 $user_nicename = sanitize_title( $user_nicename );
 }}}

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


More information about the wp-trac mailing list