[wp-trac] Re: [WordPress Trac] #4189: Taxonomy Schema and API

WordPress Trac wp-trac at lists.automattic.com
Sat May 19 23:56:43 GMT 2007

#4189: Taxonomy Schema and API
 Reporter:  ryan                           |        Owner:  anonymous
     Type:  defect                         |       Status:  new      
 Priority:  normal                         |    Milestone:  2.3      
Component:  General                        |      Version:  2.2      
 Severity:  normal                         |   Resolution:           
 Keywords:  term taxonomy tags categories  |  
Comment (by ryan):

 Patch starts putting taxonomy to use for tags.  I removed the WPTaxonomy
 class since we don't really need a class with what we currently have.
 add_term() now takes a taxonomy argument.  I figure most of the term
 manipulation will be done within the context of a taxonomy, so just have
 add_term() add the term to the terms table and take care of adding the
 term_taxonomy relation.

 Things are basically working with tags. You can add tags writing/editing a
 post and they will show up in the tags field after being added.  There's a
 bug where the query will blow up if the tag is already there.

 [Duplicate entry '7' for key 1]
 INSERT INTO wp_trunk_term_relationships(object_id, term_taxonomy_id)
 SELECT '7', term_taxonomy_id FROM wp_trunk_term_taxonomy AS tt INNER JOIN
 wp_trunk_terms AS t ON tt.term_id = t.term_id WHERE (t.term_slug IN
 ('test', ' Testy')) AND tt.taxonomy IN ('post_tag')

 Anyhow, just a first pass.

Ticket URL: <http://trac.wordpress.org/ticket/4189#comment:18>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list