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

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 20 11:29:30 UTC 2010


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

  * keywords:  has-patch => needs-patch


Comment:

 Replying to [comment:37 scribu]:
 > wp_insert_post.diff makes wp_insert_post() sets terms for all
 taxonomies, not just for those that have terms.

 I don't know that that will work since it isn't guaranteed that all
 taxonomies will be on the edit post screen.  I don't see it in my
 submitted patches, but I thought I had originally had the following above
 the checkboxes:
 [[[<input type="hidden" name="tax_input[$taxname]" value="" />]]

 This would provide an empty tax_input for a taxonomy that had no terms
 selected.  I'm not 100% sure on browser compatibility for that though.
 Another alternative might be to use your patch, but have it check against
 a hidden input that specifies that the taxonomy was actually on screen
 before clearing it out.

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


More information about the wp-trac mailing list