[wp-trac] [WordPress Trac] #35227: Add unregister_taxonomy()
WordPress Trac
noreply at wordpress.org
Sat Dec 26 19:47:39 UTC 2015
#35227: Add unregister_taxonomy()
-------------------------------------------------+-------------------------
Reporter: swissspidy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.5
Component: Taxonomy | Version: 2.3
Severity: normal | Resolution:
Keywords: early has-patch has-unit-tests dev- | Focuses:
feedback |
-------------------------------------------------+-------------------------
Changes (by swissspidy):
* keywords: early needs-patch needs-unit-tests => early has-patch has-
unit-tests dev-feedback
Comment:
[attachment:35227.diff] adds the same `remove_rewrite_tag()` function as
the patch in #14761 and does the following:
* Properly removes the taxonomy from the `$wp_taxonomies` global
* Removes rewrite tags and permastructs
* Removes the callback for handling the meta box
* Prevents unregistering built-in taxonomies
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35227#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list