[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 23:19:28 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        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by joyously):

 I'm not opposed to a comment, but it does seem pretty obvious that it is
 checking if there is a user by the name of the blog, and the function name
 has "validate" in it.

 > The function call in the next line isn't used to check if a username
 exists.

 Yes, it is checking for username.

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


More information about the wp-trac mailing list