[wp-trac] [WordPress Trac] #29576: reset_password / wp_set_password does not clean user cache, only deletes one group of cache

WordPress Trac noreply at wordpress.org
Sun Sep 7 18:59:07 UTC 2014


#29576: reset_password / wp_set_password does not clean user cache, only deletes
one group of cache
--------------------------+-----------------------------
 Reporter:  sc0ttkclark   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.9.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When a user resets their password, it runs wp_set_password( $new_pass,
 $user->ID ); which does a wpdb update query to the user's password and
 then a single cache delete of wp_cache_delete($user_id, 'users');

 Shouldn't it be clean_user_cache( $user_id ) instead?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29576>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list