[wp-trac] [WordPress Trac] #56100: Call update_post_author_caches in WP_Posts_List_Table class
WordPress Trac
noreply at wordpress.org
Thu Jun 30 12:37:21 UTC 2022
#56100: Call update_post_author_caches in WP_Posts_List_Table class
-------------------------------------+-------------------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has- | Focuses: administration,
patch | performance
-------------------------------------+-------------------------------------
Comment (by spacedmonkey):
{{{#!php
public function display_rows( $posts = array(), $level = 0 ) {
global $wp_query, $per_page;
if ( empty( $posts ) ) {
$posts = $wp_query->posts;
update_post_author_caches( $posts );
}
}}}
@thakkarhardik I was thinking about something like this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56100#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list