[wp-trac] [WordPress Trac] #32243: count_user_posts Should Accept Multiple Post Types

WordPress Trac noreply at wordpress.org
Thu May 21 19:04:34 UTC 2015


#32243: count_user_posts Should Accept Multiple Post Types
------------------------------------------------+--------------------------
 Reporter:  nikonratm                           |       Owner:
     Type:  enhancement                         |  boonebgorges
 Priority:  normal                              |      Status:  reopened
Component:  Users                               |   Milestone:  4.3
 Severity:  normal                              |     Version:  trunk
 Keywords:  has-patch needs-testing needs-docs  |  Resolution:
                                                |     Focuses:  template
------------------------------------------------+--------------------------

Comment (by DrewAPicture):

 Replying to [comment:9 boonebgorges]:
 > DrewAPicture - Can you be more specific? I added a changelog item to
 `get_posts_by_author_sql()`. I didn't add the same thing to all functions
 that call `get_posts_by_author_sql()`, though I did update the param
 definitions. Please give guidance on how you want to handle this.

 `$post_type` only accepted a string before, and now accepts either a
 string or an array in three places. We need to document that it now
 accepts an array.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32243#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list