[wp-trac] Re: [WordPress Trac] #4100: UTW Tag Importer

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 6 19:22:36 GMT 2007


#4100: UTW Tag Importer
----------------------------+-----------------------------------------------
 Reporter:  MellerTime      |        Owner:  anonymous
     Type:  enhancement     |       Status:  new      
 Priority:  low             |    Milestone:  2.2      
Component:  Administration  |      Version:  2.2      
 Severity:  trivial         |   Resolution:           
 Keywords:  tags import     |  
----------------------------+-----------------------------------------------
Comment (by ryan):

 Use the new wp_create_tag instead of wp_create_category.  I think the
 query in post_has_tag need to use rel_type.  You could use get_post_tags,
 but we might not want the caching overhead in an import context.  Also,
 does post_has_tag need to do a COUNT?  We just need 1 result to know if
 there are tags.

 add_post_tag is missing some things that need to be done, such as updating
 counts.  Perhaps we should create wp_add_post_tag() or add an append arg
 to wp_set_post_tags.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4100#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list