Ticket #23939: 23939.diff
| File 23939.diff, 611 bytes (added by , 11 years ago) |
|---|
-
src/wp-admin/includes/ajax-actions.php
994 994 $parent = get_comment( $comment_parent ); 995 995 996 996 if ( $parent && $parent->comment_approved === '0' && $parent->comment_post_ID == $comment_post_ID ) { 997 if ( ! current_user_can( 'edit_comment', $parent->comment_ID ) ) { 998 wp_die( -1 ); 999 } 1000 997 1001 if ( wp_set_comment_status( $parent->comment_ID, 'approve' ) ) 998 1002 $comment_auto_approved = true; 999 1003 }