[wp-trac] [WordPress Trac] #10122: create metaboxes for hierarchical taxonomies

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 28 09:50:33 UTC 2010


#10122: create metaboxes for hierarchical taxonomies
----------------------------+-----------------------------------------------
 Reporter:  nicomollet      |        Owner:  ryan    
     Type:  task (blessed)  |       Status:  reopened
 Priority:  normal          |    Milestone:  3.0     
Component:  Taxonomy        |      Version:  2.8     
 Severity:  minor           |   Resolution:          
 Keywords:  needs-patch     |  
----------------------------+-----------------------------------------------

Comment(by dd32):

 {{{
 $name = ( $taxonomy == 'category' ) ? 'post_category' : 'tax_input[' .
 $taxonomy . ']';
 echo "<input type='hidden' name='{$name}[]' value='0' />"; // Allows for
 an empty term set to be sent. 0 is an invalid Term ID.
 }}}

 might be the better way to go here then, That way, the list of taxonomies
 in the request WILL be set in every case.

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


More information about the wp-trac mailing list