[wp-trac] [WordPress Trac] #56978: Use `update_post_author_caches ` in `wp_prepare_revisions_for_js`
WordPress Trac
noreply at wordpress.org
Fri Nov 4 13:10:58 UTC 2022
#56978: Use `update_post_author_caches ` in `wp_prepare_revisions_for_js`
--------------------------------------+------------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Revisions | Version: 6.1
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses: performance
--------------------------------------+------------------------------
Changes (by benjgrolleau):
* keywords: good-first-bug => good-first-bug has-patch
Comment:
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 !
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56978#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list