[wp-trac] [WordPress Trac] #21431: Allow count_many_users_posts() to count only public posts

WordPress Trac noreply at wordpress.org
Mon Nov 5 23:11:26 UTC 2012


#21431: Allow count_many_users_posts() to count only public posts
------------------------------------------+---------------------
 Reporter:  ryan                          |       Owner:  nacin
     Type:  enhancement                   |      Status:  closed
 Priority:  normal                        |   Milestone:  3.5
Component:  Users                         |     Version:  3.4.1
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  has-patch do-not-punt commit  |
------------------------------------------+---------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"22386"]:
 {{{
 #!CommitTicketReference repository="" revision="22386"
 Add a $public_only argument to count_many_users_posts() and
 get_posts_by_author_sql(). Defaults to false, and allows the counts to be
 returned for only public posts. props ryan, westi. fixes #21431.
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21431#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list