if ( !
function_exists( 'cache_users'
) ) { return;
} $author_ids =
wp_list_pluck( $posts, 'post_author'
);
$author_ids =
array_map( 'absint',
$author_ids );
$author_ids =
array_unique( array_filter( $author_ids ) );
cache_users( $author_ids );
}/**
* Updates parent post caches for a list of post objects.
*
* @since 6.1.0
*
* @param WP_Post[] $posts Array of post objects.
*/
function update_post_parent_caches( $posts ) { $parent_ids =
wp_list_pluck( $posts, 'post_parent'
);