[wp-trac] [WordPress Trac] #31383: Add WP_Tax_Query support to WP_User_Query
WordPress Trac
noreply at wordpress.org
Thu Oct 20 19:26:40 UTC 2016
#31383: Add WP_Tax_Query support to WP_User_Query
-----------------------------+-----------------------------
Reporter: desrosj | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Future Release
Component: Query | Version: 4.2
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-----------------------------+-----------------------------
Comment (by boonebgorges):
Hi @Qwindoo - #37686 is an existing ticket for what you've proposed.
> Without addressing this issue, taxonomy support for users can not be
added for taxonomies that are not exclusive to users.
Correct. You can share a taxonomy between post types, but not between
object types.
@desrosj Thanks for the refreshed patch. Why the hardcoded `if ( 'user' !=
...` checks in `register_taxonomy_for_object_type()`? It seems to me that
the restriction described above - the fact that taxonomies cannot be
shared across multiple object types - will require that we lean heavily on
a taxonomy's registered `object_type`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31383#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list