[wp-trac] [WordPress Trac] #27918: get_taxonomies() on single post type should return taxonomies registered on multiple post types
WordPress Trac
noreply at wordpress.org
Thu Oct 1 08:21:58 UTC 2015
#27918: get_taxonomies() on single post type should return taxonomies registered on
multiple post types
-------------------------------------------------+-------------------------
Reporter: johnrork | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
Component: Taxonomy | Release
Severity: normal | Version: 3.0
Keywords: needs-unit-tests needs-refresh has- | Resolution:
patch | Focuses:
-------------------------------------------------+-------------------------
Comment (by andg):
Alternatively, you can check if both the key and the value are arrays, and
perform an `array_intersect` on them. In the `get_taxonomies` use case,
this would allow to find taxonomies that belong to more than one post type
(they're excluded from the results now).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27918#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list