WordPress.org

Make WordPress Core

Changeset 11992


Ignore:
Timestamp:
10/01/09 19:59:35 (6 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.