Opened 12 years ago
Closed 12 years ago
#21431 closed enhancement (fixed)
Allow count_many_users_posts() to count only public posts
Reported by: | ryan | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | 3.4.1 |
Component: | Users | Keywords: | has-patch do-not-punt commit |
Focuses: | Cc: |
Description (last modified by )
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.
Attachments (2)
Change History (9)
Note: See
TracTickets for help on using
tickets.
Core patch plus corresponding changes to a plugin to provide context