[wp-trac] [WordPress Trac] #42693: WordPress 4.9 sends an "admin email address was changed" message to you at example.com on new install
WordPress Trac
noreply at wordpress.org
Sun Nov 26 11:15:19 UTC 2017
#42693: WordPress 4.9 sends an "admin email address was changed" message to
you at example.com on new install
--------------------------------------------------+--------------------
Reporter: tigertech | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9.2
Component: Upgrade/Install | Version: 4.9
Severity: normal | Resolution:
Keywords: has-patch needs-testing dev-feedback | Focuses:
--------------------------------------------------+--------------------
Comment (by MattyRob):
Replying to [comment:7 ocean90]:
> What about unhooking the action and/or checking for `wp_installing()`?
That's possible but I wondered about what if a user changes their email TO
an @example.com or .invalid address after installation for some reason and
then changes is back - that's still result in the emails as the email
functions are added as default filters.
One other thought I'd had was improving the core is_email() function and
only sending the email if that validates however it seems DNS checks were
moved from that filter previously and PHP filter_var() is not enabled on
all installs.
I guess this is a careful balance to ensure we do send emails as much as
possible without sending ones doomed to fail from the start, or maybe
accepting failure is better than non-sending so just leave it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42693#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list