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

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 21 00:10:10 UTC 2010


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

Comment(by dd32):

 {{{
 if ( empty($wp_taxonomies[$taxonomy]->object_type) )
         222                             unset($wp_taxonomies[$taxonomy]);
 }}}

 I dont see the need to remove the taxonomy when it has no object types
 assoc. with it, I mean, With the functions to add a object type to a
 taxonomy after its registered, it makes sense that plugins could be
 removing, and then replacing the object types.

 I'm +1 for this, so i'll get it in later sans that block, unless someone
 has a good arguement against that?

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


More information about the wp-trac mailing list