[wp-trac] [WordPress Trac] #11058: Add unregister_taxonomy()

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 23 20:34:39 UTC 2012


#11058: Add unregister_taxonomy()
-------------------------+-----------------------------
 Reporter:  scribu       |       Owner:
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  Future Release
Component:  Taxonomy     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------

Comment (by jakemgold):

 I should add that one of the peculiar behaviors - core taxonomy and
 objects or not - when unregistering a taxonomy against an object is that
 objects previously assigned terms in those taxonomy retain those terms.

 So even in ideal circumstances when you register a custom post type and
 taxonomy, assign some post objects some terms in that taxonomy, than
 unregister the taxonomy against the post type object (but don't remove the
 taxonomy), queries against those terms still return posts assigned terms
 against that taxonomy (without any GUI to unassign them).

 If we care about this (pretty questionable path), we'd need to modify
 queries against taxonomy terms to limit its results to post types assigned
 those taxonomies... I wonder if we should do this anyways...

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


More information about the wp-trac mailing list