[wp-trac] [WordPress Trac] #37742: wp_update_user anyway sending email even user password did not change
WordPress Trac
noreply at wordpress.org
Fri Aug 26 18:37:34 UTC 2016
#37742: wp_update_user anyway sending email even user password did not change
--------------------------+----------------------
Reporter: librapan | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Users | Version: 4.6
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by johnbillion):
* status: new => closed
* focuses: administration =>
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Thanks for the report, @librapan.
I'm unable to reproduce this issue unless the `user_pass` property is
included in the data passed to `wp_update_user()`.
[https://core.trac.wordpress.org/browser/tags/4.6/src/wp-
includes/user.php?marks=1741#L1740 This logic] means the email will only
be sent when `$userdata['user_pass']` has a non-empty value.
Can you check your code please? If you think there's still a bug here,
feel free to re-open this ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37742#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list