[wp-trac] [WordPress Trac] #14834: wp_insert_user errors for users without e-mail addresses
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 23 13:04:16 UTC 2011
#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: General | Version: 3.0
Severity: normal | Resolution:
Keywords: 2nd-opinion |
--------------------------+-----------------------------
Comment (by CiaranG):
To fix the problem to allow the OpenID plugin to work again, I simply
changed a line in wp_insert_user, from:
if ( !$update && ! defined( 'WP_IMPORTING' ) &&
email_exists($user_email) )
to:
if ( strlen($user_email) > 0 && !$update && ! defined(
'WP_IMPORTING' ) && email_exists($user_email) )
In other words, it's permissible to have more than one user with a blank
email address field.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14834#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list