Try to add extra screen after login asking to confirm admin email #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is it?
This is a PR with a demo of how the "Is your/this admin email still correct" Trac ticket could function.
Reference Trac Ticket ID: 46349 (link)
How it works
wp_confirm_admin_email
hooks intologin_redirect
ADMIN_EMAIL_MAX_AGE
timeaction=confirm_admin_email
manage_options
wp-login.php
option
namedadmin_email_lifespan
, alsoupdate_option_new_admin_email
function used in the options screenoption
namedadmin_email_lifespan
How to test
Switch to the branch and update in
default-constants.php
theADMIN_EMAIL_MAX_AGE
to a number that makes sense for testing. Make sure your local WP is able to send emails. Login and you should see the new screen.