[wp-trac] [WordPress Trac] #47021: Use clean_user_cache in more places.

WordPress Trac noreply at wordpress.org
Wed Apr 24 06:07:50 UTC 2019


#47021: Use clean_user_cache in more places.
--------------------------+------------------------------
 Reporter:  spacedmonkey  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  5.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by mukesh27):

 In {{{wp-includes/user.php}}} file, {{{ wp_update_user }}} function can we
 also remove below code with new code.
 {{{
 wp_cache_delete( $user['user_email'], 'useremail' );
 wp_cache_delete( $user['user_nicename'], 'userslugs' );
 }}}
 Replace with new below code
 {{{
 clean_user_cache( $ID );
 }}}

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


More information about the wp-trac mailing list