[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
Sat Apr 19 17:36:38 UTC 2014


#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:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 A taxonomy registered on multiple post types is missing from
 get_taxonomies() when called with only one of those post types.

 It seems self-evident that get_taxonomies should return all of a post
 type's taxonomies, regardless of how they were registered.

 {{{
 //... on init...
 register_taxonomy('foo', array('bar','baz'), $opts);

 //... in template ...
 // returns taxonomies registered only on 'bar', 'foo' is missing
 get_taxonomies('object_type'=>array('bar'));

 // returns 'foo' only if exact array is passed
 get_taxonomies('object_type'=>array('bar','baz'));
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27918>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list