Opened 2 years ago
Closed 2 years ago
#56978 closed enhancement (fixed)
Use `update_post_author_caches ` in `wp_prepare_revisions_for_js`
Reported by: | spacedmonkey | Owned by: | spacedmonkey |
---|---|---|---|
Milestone: | 6.2 | Priority: | normal |
Severity: | normal | Version: | 6.1 |
Component: | Revisions | Keywords: | good-first-bug has-patch commit |
Focuses: | performance | Cc: |
Description
Replace call to cache_users
in wp_prepare_revisions_for_js
function with update_post_author_caches
.
Attachments (2)
Change History (8)
#1
@
2 years ago
- Keywords has-patch added
Hello,
I've just made the patch.
I've replaced cache_users with update_post_author_caches and pass as argument the $post instead of the auhors plucked list.
Maybe I have to change $post by $revisions ?
Have a great day !
#2
@
2 years ago
@benjgrolleau Thanks for your patch.
How it is incorrect. This function accepts an array of post objects. Also $revisions should be passed.
Note: See
TracTickets for help on using
tickets.
First patch.