[wp-trac] [WordPress Trac] #53631: Modify "email already exists" message upon registration

WordPress Trac noreply at wordpress.org
Mon Jul 12 15:10:02 UTC 2021


#53631: Modify "email already exists" message upon registration
------------------------------------+--------------------------
 Reporter:  dansoschin              |       Owner:  sabernhardt
     Type:  enhancement             |      Status:  accepted
 Priority:  normal                  |   Milestone:  5.9
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  needs-patch             |     Focuses:  ui-copy
------------------------------------+--------------------------
Changes (by sabernhardt):

 * status:  new => accepted
 * focuses:   => ui-copy
 * severity:  trivial => normal
 * owner:  (none) => sabernhardt
 * version:  5.7.2 =>
 * milestone:  Awaiting Review => 5.9
 * keywords:   => needs-patch
 * type:  feature request => enhancement


Comment:

 If we switch direction to improving the default messages, then this is an
 enhancement with normal severity. Changing the summary was good. And I set
 the milestone to try for later this year.

 I do not have a patch ready today. If someone else wants to create one
 before I do (and/or claim ownership of the ticket), you are welcome to do
 so.

 I think the code would be similar to this in both files, though I expect
 it still needs some editing to work for any site (that does not override
 the message):
 {{{
         $login_url = network_site_url( '/wp-login.php' );
         $errors->add( 'email_exists', sprintf( '<strong>Error</strong>:
 This email is already registered. <a href="%s">Log in</a> with this
 address or choose another one.', $login_url ) );
 }}}

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


More information about the wp-trac mailing list