Make WordPress Core


Ignore:
Timestamp:
08/24/2008 06:56:22 AM (17 years ago)
Author:
azaozz
Message:

Reply to comments from admin, first run, see #7435

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments-post.php

    r8149 r8720  
    6767    wp_die( __('Error: please type a comment.') );
    6868
    69 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'user_ID');
     69$comment_parent = isset($_POST['comment_parent']) ? absint($_POST['comment_parent']) : 0;
     70
     71$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'comment_parent', 'user_ID');
    7072
    7173$comment_id = wp_new_comment( $commentdata );
Note: See TracChangeset for help on using the changeset viewer.