[wp-trac] [WordPress Trac] #45845: Use get_user_by in check_password_reset_key
WordPress Trac
noreply at wordpress.org
Thu Aug 1 19:16:13 UTC 2019
#45845: Use get_user_by in check_password_reset_key
--------------------------------------+-----------------------------
Reporter: spacedmonkey | Owner: SergeyBiryukov
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.3
Component: Users | Version: 3.1
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses: performance
--------------------------------------+-----------------------------
Comment (by SergeyBiryukov):
Since [45714] and [45715], `get_password_reset_key()` uses
`wp_update_user()`, which clears the cache.
So reintroducing [44780] as is seems fine now, without the extra
`clean_user_cache()` calls. The tests pass for me.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45845#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list