Changeset 33654
- Timestamp:
- 08/20/2015 02:44:39 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r33223 r33654 1858 1858 1859 1859 if ( wp_set_comment_status($comment_id, 'trash') ) { 1860 add_comment_meta($comment_id, '_wp_trash_meta_status', $comment->comment_approved); 1861 add_comment_meta($comment_id, '_wp_trash_meta_time', time() ); 1860 delete_comment_meta( $comment_id, '_wp_trash_meta_status' ); 1861 delete_comment_meta( $comment_id, '_wp_trash_meta_time' ); 1862 add_comment_meta( $comment_id, '_wp_trash_meta_status', $comment->comment_approved ); 1863 add_comment_meta( $comment_id, '_wp_trash_meta_time', time() ); 1862 1864 1863 1865 /** … … 1939 1941 1940 1942 if ( wp_set_comment_status($comment_id, 'spam') ) { 1941 add_comment_meta($comment_id, '_wp_trash_meta_status', $comment->comment_approved); 1943 delete_comment_meta( $comment_id, '_wp_trash_meta_status' ); 1944 delete_comment_meta( $comment_id, '_wp_trash_meta_time' ); 1945 add_comment_meta( $comment_id, '_wp_trash_meta_status', $comment->comment_approved ); 1946 add_comment_meta( $comment_id, '_wp_trash_meta_time', time() ); 1942 1947 /** 1943 1948 * Fires immediately after a comment is marked as Spam. … … 1980 1985 1981 1986 if ( wp_set_comment_status($comment_id, $status) ) { 1982 delete_comment_meta($comment_id, '_wp_trash_meta_status'); 1987 delete_comment_meta( $comment_id, '_wp_trash_meta_status' ); 1988 delete_comment_meta( $comment_id, '_wp_trash_meta_time' ); 1983 1989 /** 1984 1990 * Fires immediately after a comment is unmarked as Spam.
Note: See TracChangeset
for help on using the changeset viewer.