Changeset 11971 for trunk/wp-includes/comment.php
- Timestamp:
- 09/24/2009 05:19:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r11968 r11971 864 864 865 865 add_comment_meta($comment_id,'_wp_trash_meta_status', $comment->comment_approved); 866 add_comment_meta($comment_id,'_wp_trash_meta_time', time() ); 867 866 add_comment_meta($comment_id,'_wp_trash_meta_time', time() ); 867 868 868 wp_set_comment_status($comment_id, 'trash'); 869 869 … … 887 887 888 888 $comment = array('comment_ID'=>$comment_id, 'comment_approved'=>'0'); 889 889 890 890 //Either set comment_approved to the value in comment_meta or worse case to false which will mean moderation 891 891 $comment['comment_approved'] = get_comment_meta($comment_id, '_wp_trash_meta_status', true);
Note: See TracChangeset
for help on using the changeset viewer.