[wp-trac] [WordPress Trac] #11058: Add unregister_taxonomy()
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 23 20:27:18 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):
'unregister_taxonomy' is unquestionably a hot mess (and what we should
probably strive for is an early hook in register_taxonomy that can prevent
taxonomy registration, particularly for something like posts, rather than
unloading it all after the fact).
Not sure that this applies to unregistering the taxonomy for an object
type, however, even for "core" taxonomies against post. I've used this
somewhat extensively, even before this patch, and never encountered any
serious glitches, and none that would count as a legitimate "bug." There's
a certain... "weirdness" to lingering references to Categories and Post
Types in the admin ("Right Now", permalink settings, etc) when no objects
are actually using them (probably because we ideally want to get to
unregister_taxonomy...), but nothing breaks, since any "retrieval" of
individual object terms - even core ones - all goes through the abstracted
taxonomy functions, and the taxonomy still exists, protecting against any
direct taxonomy references (e.g. core category / tag archives).
Any idea where there might be something more subtle lurking that would
break?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11058#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list