Ticket #1953: comment_parent.diff
| File comment_parent.diff, 896 bytes (added by error, 6 years ago) |
|---|
-
wp-comments-post.php
4 4 nocache_headers(); 5 5 6 6 $comment_post_ID = (int) $_POST['comment_post_ID']; 7 $comment_parent = (int) $_POST['comment_parent']; 7 8 8 9 $status = $wpdb->get_row("SELECT post_status, comment_status FROM $wpdb->posts WHERE ID = '$comment_post_ID'"); 9 10 … … 46 47 if ( '' == $comment_content ) 47 48 die( __('Error: please type a comment.') ); 48 49 49 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', ' user_ID');50 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'comment_parent', 'user_ID'); 50 51 51 52 wp_new_comment( $commentdata ); 52 53
