[wp-trac] [WordPress Trac] #14834: wp_insert_user errors for users without e-mail addresses

WordPress Trac wp-trac at lists.automattic.com
Sat Jul 7 00:16:44 UTC 2012


#14834: wp_insert_user errors for users without e-mail addresses
-----------------------------------------+-----------------------------
 Reporter:  clifgriffin                  |       Owner:
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  Future Release
Component:  Users                        |     Version:  3.0
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |
-----------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch => has-patch reporter-feedback
 * version:  3.4.1 => 3.0
 * severity:  critical => normal


Comment:

 Version number indicates when the bug was initially introduced/reported.

 Replying to [comment:8 CiaranG]:
 > Still broken in the 3.3 release.

 Have you verified that?

 Since [18597], `email_exists()` returns false for empty strings, due to
 the check in `get_data_by()`: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.1/wp-
 includes/capabilities.php#L500

 I could not reproduce the original bug. This code successfully creates two
 users with blank email addresses in both 3.3 and 3.4:
 {{{
 wp_insert_user( array( 'user_login' => 'user1', 'user_pass' => '123' ) );
 wp_insert_user( array( 'user_login' => 'user2', 'user_pass' => '456' ) );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14834#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list