[wp-trac] [WordPress Trac] #21290: Post types continue to be selected after removal from custom taxonomy registration

WordPress Trac noreply at wordpress.org
Tue Dec 18 17:20:13 UTC 2012


#21290: Post types continue to be selected after removal from custom taxonomy
registration
--------------------------+---------------------------
 Reporter:  jondavidjohn  |       Owner:  jondavidjohn
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  3.5
Component:  Taxonomy      |     Version:  3.4.1
 Severity:  major         |  Resolution:  fixed
 Keywords:  close         |
--------------------------+---------------------------

Comment (by wonderboymusic):

 I think maybe the reverse should have happened here - instead of looking
 at all post types and plucking out the public ones which are registered
 for the taxonomy, the passed post_types should be filtered by only those
 that are *still* registered with that taxonomy. It should safe to assume
 that post_type is going to default to 'post' in most cases, which is what
 are broadcasting to the universe here:
 http://codex.wordpress.org/Class_Reference/WP_Query#Type_Parameters

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21290#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list