[wp-trac] [WordPress Trac] #10821: Taxonomy problem with deleting posts

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 1 08:50:41 UTC 2009


#10821: Taxonomy problem with deleting posts
--------------------------+-------------------------------------------------
 Reporter:  pavelevap     |        Owner:  filosofo
     Type:  defect (bug)  |       Status:  reopened
 Priority:  high          |    Milestone:  2.9     
Component:  Taxonomy      |      Version:  2.8     
 Severity:  major         |   Resolution:          
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------

Comment(by dd32):

 hit a slight issue with wp_delete_attachment... According to the Taxonomy
 system, category and post_tag do not get applied to Attachments, Yet,
 Categories get attached to ALL post types (ie. EVERY object in the posts
 table gets an attachment, Uncategorized if nothing specified)

 As a result, i'm not sure what to do there, The proper thing would be to
 tell Taxonomy that the category tax applies to ALL objects, This however,
 has the disadvantage that, well, It doesnt apply to everything in
 practice.

 So instead, I've just left wp_delete_attachment deleting category and
 post_tag anyway, and then a seperate call to delete custom tax's..

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


More information about the wp-trac mailing list