Opened 5 years ago
Closed 5 years ago
#47021 closed defect (bug) (fixed)
Use clean_user_cache in more places.
Reported by: | spacedmonkey | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | 5.1 |
Component: | Users | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
There are a number of places in core that should use the clean_user_cache
function. This so all caches are correctly cleared / invalidated and the clean_user_cache
action is fired.
Attachments (3)
Change History (9)
#2
@
5 years ago
- Milestone changed from Awaiting Review to Future Release
Good catch @mukesh27
I have updated the patch with 47021.3.diff. I did some testing and ran the unit tests. Tests pass.
Note: See
TracTickets for help on using
tickets.
@spacedmonkey, In
wp-includes/user.php
file,wp_update_user
function can we also remove below code with new code.Replace with new below code