[wp-trac] [WordPress Trac] #11058: Add unregister_taxonomy()
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 23 20:07:24 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 nacin):
A unregister_taxonomy() function needs to un-roll quite a bit:
* Remove the query var from the WP class, if one was registered.
* Remove any rewrite tags and permastructs.
* Remove the callback for handling the meta box.
A separate unregister_taxonomy_for_object_type() function needs to remove
items from object_type.
An unregister_taxonomy() function should disallow the unregistration of
'post_tag' and 'category' until core does not assume they exist in many,
many locations. The same block might also need to be in place in
unregister_taxonomy_for_object_type() for the 'post' object type until
core no longer breaks under any existing assumptions as well.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11058#comment:26>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list