Ticket #23939: wp_ajax_replyto_comment.patch
| File wp_ajax_replyto_comment.patch, 874 bytes (added by , 13 years ago) |
|---|
-
wp-admin/includes/ajax-actions.php
728 728 if ( ! $post ) 729 729 wp_die( -1 ); 730 730 731 if ( !current_user_can( 'edit_post', $comment_post_ID ) ) 731 $comment_parent = absint($_POST['comment_ID']); 732 if ( !current_user_can( 'edit_comment', $comment_parent ) ) 732 733 wp_die( -1 ); 733 734 734 735 if ( empty( $post->post_status ) ) … … 756 757 if ( '' == $comment_content ) 757 758 wp_die( __( 'ERROR: please type a comment.' ) ); 758 759 759 $comment_parent = absint($_POST['comment_ID']);760 760 $comment_auto_approved = false; 761 761 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'comment_parent', 'user_ID'); 762 762