[wp-trac] [WordPress Trac] #45845: Use get_user_by in check_password_reset_key

WordPress Trac noreply at wordpress.org
Thu Feb 28 23:01:53 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.2
Component:  Users                     |     Version:  3.1
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  performance
--------------------------------------+-----------------------------

Comment (by davidbaumwald):

 Replying to [comment:8 desrosj]:
 > Reopening this because there are some [https://travis-ci.org/WordPress
 /wordpress-develop/jobs/500039993 failed unit tests resulting].
 >
 > I have to step away but wanted to add what I have found so far. I'm not
 sure what exactly is happening yet, but deleting the user's cache with
 `wp_delete_cache()` results in this test passing.

 So, should the cache be cleared before the test case so that fresh results
 are fetched when get_user_by is called?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45845#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list