[wp-trac] [WordPress Trac] #10943: Need way to prohibit creation of new taxonomy terms

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 15 21:01:58 UTC 2009


#10943: Need way to prohibit creation of new taxonomy terms
-------------------------+--------------------------------------------------
 Reporter:  sirzooro     |       Owner:  filosofo 
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.9      
Component:  Taxonomy     |     Version:  2.8.4    
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------
Changes (by prettyboymp):

 * cc: mpretty@… (added)


Comment:

 I have a similar need, but this patch (attachment:taxonomy.php.diff) has
 some limitations.  If wp_insert_term returns a WP_Error than the
 wp_set_object_terms will return directly after with an error, causing none
 of the terms to be mapped to the object.  I think a better solution would
 be the ability to filter our the new terms before the loop even begins.

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


More information about the wp-trac mailing list