Opened 4 years ago
Closed 4 years ago
#56978 closed enhancement (fixed)
Use `update_post_author_caches ` in `wp_prepare_revisions_for_js`
| Reported by: | spacedmonkey | Owned by: | spacedmonkey |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.2 |
| Component: | Revisions | Version: | 6.1 |
| Severity: | normal | Keywords: | good-first-bug has-patch commit |
| Cc: | Focuses: | performance |
Description
Replace call to cache_users in wp_prepare_revisions_for_js function with update_post_author_caches.
Attachments (2)
Change History (8)
#1
@
4 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 !
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
First patch.