Changes between Initial Version and Version 6 of Ticket #14834
- Timestamp:
- 08/03/2011 04:29:33 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14834
- Property Keywords 2nd-opinion added
- Property Cc Jeremy Malcolm added
-
Property
Component
changed from
GeneraltoUsers -
Property
Milestone
changed from
Awaiting ReviewtoFuture Release
-
Ticket #14834 – Description
initial v6 3 3 4 4 In WP3, a check was added to determine whether or not the user already exists by their e-mail address. 5 5 {{{ 6 6 if ( !$update && ! defined( 'WP_IMPORTING' ) && email_exists($user_email) ) 7 7 return new WP_Error('existing_user_email', __('This email address is already registered.') ); 8 }}} 8 9 9 10 The problem with this check is that it matches the admin account if you pass it a null or blank e-mail address. The admin account, being created by the installation script, does not start with an e-mail address. 10 11 11 12 This has caused one of my plugins (Simple LDAP Login) to fail. To fix this, I had to do this: 13 {{{ 12 14 if ( !function_exists('get_user_by_email') ) : 13 15 /** … … 30 32 } 31 33 endif; 34 }}} 32 35 33 36 Please consider changing this behavior in future versions. I hate having to modify core functions to keep a plugin working. :)