[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:15:08 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:     
--------------------------+-------------------------------------------------
Changes (by caesarsgrunt):

  * keywords:  has-patch =>


Comment:

 We could add an argument to {{{wp_untrash_comment()}}} and
 {{{wp_unspam_comment()}}} which allows one to override the previous status
 read from the db and set an arbitrary new one. Then
 {{{wp_set_comment_status()}}} can check the status of the comment, and if
 it is trash or spam call {{{wp_untrash_comment()}}} or
 {{{wp_unspam_comment()}}} with this parameter specifying the new status.

 Sorry if that's not a good explanation... I'll upload a patch later.

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


More information about the wp-trac mailing list