[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
Tue Oct 13 19:19:22 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 | Resolution:
needs-patch | Focuses:
-------------------------------------------------+-------------------------
Changes (by boonebgorges):
* keywords: needs-unit-tests needs-refresh has-patch => needs-unit-tests
needs-refresh needs-patch
Comment:
What are we going to break by making `wp_list_filter()` match partially
like this? I agree that the change makes sense for `get_taxonomies()`, but
I can think of plenty of cases where you may only want to match the full
array.
A more local fix is probably appropriate here. In `get_taxonomies()`, if
we detect that 'object_type' is an array, we may want to run a separate
`wp_list_filter()` on it, using the 'OR' operator.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27918#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list