[wp-trac] [WordPress Trac] #56978: Use `update_post_author_caches ` in `wp_prepare_revisions_for_js`

WordPress Trac noreply at wordpress.org
Tue Dec 6 13:41:02 UTC 2022


#56978: Use `update_post_author_caches ` in `wp_prepare_revisions_for_js`
---------------------------------------------+---------------------------
 Reporter:  spacedmonkey                     |       Owner:  spacedmonkey
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  6.2
Component:  Revisions                        |     Version:  6.1
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  good-first-bug has-patch commit  |     Focuses:  performance
---------------------------------------------+---------------------------
Changes (by spacedmonkey):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54939" 54939]:
 {{{
 #!CommitTicketReference repository="" revision="54939"
 Revisions: Use `update_post_author_caches` in
 `wp_prepare_revisions_for_js` function.

 The `update_post_author_caches` function was added in [53482]. Replace
 call to `cache_users` function with `update_post_author_caches`, for
 consistency and code quality.

 Props benjgrolleau, spacedmonkey.
 Fixes #56978.
 }}}

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


More information about the wp-trac mailing list