[wp-trac] [WordPress Trac] #57164: Email change confirmation link incorrect for MU user with no roles

WordPress Trac noreply at wordpress.org
Mon Nov 21 12:22:28 UTC 2022


#57164: Email change confirmation link incorrect for MU user with no roles
---------------------------------------+-----------------------------
 Reporter:  roytanck                   |      Owner:  (none)
     Type:  defect (bug)               |     Status:  new
 Priority:  normal                     |  Milestone:  Awaiting Review
Component:  General                    |    Version:
 Severity:  normal                     |   Keywords:
  Focuses:  administration, multisite  |
---------------------------------------+-----------------------------
 The link in an email change confirmation email for users with no roles in
 a multisite install is incorrect, causing them to be unable to change
 their email address.

 This appears to be a regression. The same issue was fixed in #38876 , but
 #41163 appears to have undone that fix.

 Steps to reproduce:

 * Create a new (subdirectory) multisite install.
 * In the network admin, create a new user.
 * Do not assign any roles to this user.
 * Login as the new user, and attempt to change their email address.
 * When clicking the link in the confirmation email, an error will appear.

 As described in #38451, adding `/user` in the URL will fix the issue. It
 appears that `self_admin_url()` does this.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57164>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list