[wp-trac] [WordPress Trac] #32250: Ability to get_users() who have published posts
WordPress Trac
noreply at wordpress.org
Sat May 16 23:56:27 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: needs-patch needs-unit-tests | Focuses:
------------------------------------------+-----------------------
Changes (by boonebgorges):
* keywords: has-patch => needs-patch needs-unit-tests
Comment:
"Anti-pattern" seems a bit harsh as a criticism of 'has_public_posts' vs
'has_published_posts' :) Either param name seems fine to me.
> Or has_published_posts_of_type would be more descriptive.
I'd suggest that the parameter be called 'has_published_posts'. Accepts
the following values:
- `null`, which is the default. When `null`, ignore the param.
- `true` When `true`, assume all public post types.
- `false` When `false`, assume all public post types, but do a `NOT IN`
- an array of post types
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32250#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list