[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 15:15:10 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:
--------------------------+-------------------------------------------------
Comment(by nacin):
I'm thinking we tie this into wp_transition_comment_status(). We could
possibly even add a default action to handle it:
Either in wp_transition_comment_status() or tied to the
transition_comment_status hook:
{{{
if ( 'trash' == $old_status )
wp_untrash_comment( $comment );
if ( 'spam' == $old_status )
wp_unspam_comment( $comment );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11442#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list