Ticket #12192 (closed enhancement: fixed)

Opened 2 years ago

Last modified 22 months ago

Show status when changing admin email

Reported by: jane Owned by:
Priority: normal Milestone: 3.0
Component: UI Version: 3.0
Severity: normal Keywords: commit
Cc: aaron@…

Description

We should make it so that if someone changes the site admin address (under Settings > General), instead of it reverting to old address until the email confirmation link is clicked, we display what they tried to change it to and note that it is pending. Otherwise, it just looks like it didn't work, especially if the email doesn't show up right away.

If someone wants to whip this out to get into 3.0, awesome, otherwise will try to get it into 3.1.

Attachments

r13330.txt Download (957 bytes) - added by jorbin 2 years ago.
patch vs 13330 to change the description after the field for when there is a pending change
Screenshot.png Download (30.7 KB) - added by jorbin 2 years ago.
Screenshot of pending change
Screenshot-1.png Download (39.8 KB) - added by jorbin 2 years ago.
Version with class='updated' to draw more attention
options-general.php Download (12.2 KB) - added by jorbin 2 years ago.
Patch that adds a yellow box around the message to draw attention to it.
Screenshot-2.png Download (44.5 KB) - added by jorbin 2 years ago.
r13408.txt Download (993 bytes) - added by jorbin 2 years ago.
actual patch to apply
r13408.diff Download (993 bytes) - added by jorbin 2 years ago.
r13443.diff Download (1023 bytes) - added by jorbin 2 years ago.
Puts notice in <div class='updated inline'>

Change History

jorbin2 years ago

patch vs 13330 to change the description after the field for when there is a pending change

  • Cc aaron@… added
  • Keywords has-patch added
  • Version changed from 2.9.1 to 3.0

When there is a pending change, I changed the description after the field to read:

There is a pending change of the admin e-mail to: $new_admin_email

jorbin2 years ago

Screenshot of pending change

jorbin2 years ago

Version with class='updated' to draw more attention

jorbin2 years ago

Patch that adds a yellow box around the message to draw attention to it.

Added a second patch that adds the updated class to put the notice in yellow

jorbin2 years ago

jorbin2 years ago

actual patch to apply

jorbin2 years ago

  • Component changed from Administration to UI
  • Reporter changed from janeforshort to jane

We generally use div.updated p, that way it doesn't look scrunched up. That said, if you tried to use that, then some JavaScript would have moved it to the top.

Personally, I prefer this as a notice across the top, though I can certainly settle for an inline notification. We'll need Jane to weigh in, as she proposed something a bit different originally.

  • Keywords commit added; has-patch removed

Yesterday in the #wordpress-dev Jane signed off on the implementation done in r13408.diff . See Screenshot-2.png for what is added on a pending email change

jorbin2 years ago

Puts notice in <div class='updated inline'>

(In [13446]) Show a notice when changing a multisite's site admin email. props jorbin. Introduce an .inline class that can be used with div.updated and div.error, to prevent the message from being moved to the top of the page. see #12192

Okay, this one is in. It looks good. Just a note, this is only multisite -- we don't require e-mail confirmation in a single-site setup. The ticket wasn't clear and the diff actually patched the non-multisite code, so I wanted to make note of this.

Jane, if you like, feel free to => fixed.

  • Status changed from new to closed
  • Resolution set to fixed

This looks good, so closing as fixed.

comment:8   ryan2 years ago

  • Status changed from closed to reopened
  • Resolution fixed deleted

Whenever you Save Changes in options-general.php, new_admin_email is set in the options table. With this change you will then see the pending change notice even though you haven't actually changed the email address. We should either check to see if new_admin_email is the same as admin_email or not save new_admin_email at all.

I would appreciate it if we could do the same for the network e-mail address on ms-options.php.

(In [13705]) Only show multisite admin email notice if the email was changed. Add a "Cancel" link so the nag doesn't stay forever if the admin ends up not changing the email. see #12192

  • Status changed from reopened to closed
  • Resolution set to fixed

(In [14242]) Hook update_option_new_admin_email to add_option_new_admin_email so that the confirmation email gets set even when new_admin_email doesn't already exist. see #12192

Note: See TracTickets for help on using tickets.