[wp-trac] [WordPress Trac] #32250: Ability to get_users() who have published posts

WordPress Trac noreply at wordpress.org
Fri May 22 01:18:10 UTC 2015


#32250: Ability to get_users() who have published posts
-------------------------+-----------------------
 Reporter:  joehoyle     |       Owner:  joehoyle
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  4.3
Component:  Query        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------
Changes (by boonebgorges):

 * keywords:  needs-patch needs-unit-tests => has-patch


Comment:

 Thanks for the updated patch, joehoyle!

 I think you misread my meaning for `false`. I meant that it should return
 users who do not have any published posts in public post types; you
 interpreted that it should return users who have published posts in non-
 public post types. Either way, the more I think about it, the less a
 `false` value makes sense. Let's leave it out. `true` will simply be
 shorthand for all public post types.

 I'm going to clean up a number of items (better escaping, proper support
 for `$blog_id`, slightly more structured unit tests) and post another
 patch here. Before committing, I'd like to ask someone from the WP-API
 team to double-check to be sure that the new parameter will do what you
 need it to do.

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


More information about the wp-trac mailing list