[wp-trac] [WordPress Trac] #43734: user_profile_update_errors hook needs work-around to validate a to-be updated email address
WordPress Trac
noreply at wordpress.org
Mon Apr 16 07:19:15 UTC 2018
#43734: user_profile_update_errors hook needs work-around to validate a to-be
updated email address
--------------------------+------------------------------
Reporter: BjornW | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: docs
--------------------------+------------------------------
Comment (by BjornW):
Replying to [comment:1 soulseekah]:
> I think the deeper issue is that there's no straightforward way to
prevent `send_confirmation_on_profile_email` from running without
prevalidation. Like what if I want to prevent certain domains from being
picked as a new e-mail? I should be able to prevent everything from
triggering.
>
> One way is to register `personal_options_update` and
`edit_user_profile_update` hooks and remove
`send_confirmation_on_profile_email` and then run it after validation. But
that seems hacky.
I agree completely. Seems to me the current implementation warrants a
better one taking these use cases into account. I guess we need to come up
with a patch as a proof-of-concept?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43734#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list