WordPress.org

Make WordPress Core

Changeset 11992


Ignore:
Timestamp:
10/01/2009 07:59:35 PM (9 years ago)
Author:
westi
Message:

Delete the trash metadata when untrashing a comment. See #4529 props caesarsgrunt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r11978 r11992  
    891891    $comment['comment_approved'] = get_comment_meta($comment_id, '_wp_trash_meta_status', true);
    892892
     893    delete_comment_meta($comment_id, '_wp_trash_meta_time');
     894    delete_comment_meta($comment_id, '_wp_trash_meta_status');
     895   
    893896    wp_update_comment($comment);
    894 
     897       
    895898    do_action('untrashed_comment', $comment_id);
    896899
Note: See TracChangeset for help on using the changeset viewer.