[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 19:27:00 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 have added a patch which I think does the correct thing. Irony being, it
 doesn't solve my problem. But if it's going to use `post` when no post
 types are passed (which is how it used to work), my patch correctly
 identifies post as not being registered with `region` and returns nothing
 when I make the `WP_Query` after calling `switch_to_blog()`. That solves
 the original intent of the ticket - discarding post_types that are no
 longer registered with the taxonomy. Adding more post_types into the fray,
 IMO, breaks expected WP_Query default behavior.

 I'm not going to reopen the ticket, but curious if anyone else is affected
 by this.

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


More information about the wp-trac mailing list