[wp-trac] [WordPress Trac] #54326: `username_exists()` is passed a blog name in wp-includes/ms-functions.php

WordPress Trac noreply at wordpress.org
Tue Oct 26 21:05:48 UTC 2021


#54326: `username_exists()` is passed a blog name in wp-includes/ms-functions.php
--------------------------+-----------------------------
 Reporter:  henry.wright  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In the wp-includes/ms-functions.php file, in the
 wpmu_validate_blog_signup() function definition, you will see this
 condition:

 {{{
 if ( username_exists( $blogname ) ) {
     // Stuff
 }
 }}}

 {{{username_exists()}}} shouldn't be passed a blog name. It accepts a user
 name only.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54326>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list