[wp-trac] [WordPress Trac] #11442: Untrashed comments could be deleted by wp_scheduled_delete()

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 15 11:02:09 UTC 2009


#11442: Untrashed comments could be deleted by wp_scheduled_delete()
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  high          |   Milestone:  2.9      
Component:  Trash         |     Version:  2.9      
 Severity:  blocker       |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by caesarsgrunt):

 Doing this stops plugins from being able to use
 {{{wp_scheduled_delete()}}} for other status such as spam (could be a
 common use case).

 Better would be to make {{{wp_set_comment_status()}}} check whether the
 comment is spam or trash before setting the status, and if so run
 {{{wp_untrash_comment()}}} or {{{wp_unspam_comment()}}} first.

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


More information about the wp-trac mailing list