Allow count_many_users_posts() to count only public posts — at Version 2
|Reported by:||ryan||Owned by:|
|Component:||Users||Keywords:||has-patch do-not-punt commit|
Description (last modified by ryan)
count_many_users_posts() calls get_posts_by_author_sql() which contains some cap checks. This makes the output dependent on the current user and thus not very cacheable. Let's add a means of counting only public posts that skips the cap and current user checks.