[wp-trac] [WordPress Trac] #21431: Allow count_many_users_posts() to count only public posts
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 31 17:44:03 UTC 2012
#21431: Allow count_many_users_posts() to count only public posts
-------------------------+-------------------
Reporter: ryan | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.5
Component: Users | Version: 3.4.1
Severity: normal | Keywords:
-------------------------+-------------------
count_many_users_posts() calls get_posts_by_author_sql() which contains
some cap checks. This make the output dependent on the current user and
not very cacheable. Let's add a means of counting only public posts that
skips the cap and current user checks.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21431>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list