Changeset 8720 for trunk/wp-comments-post.php
- Timestamp:
- 08/24/2008 06:56:22 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-comments-post.php
r8149 r8720 67 67 wp_die( __('Error: please type a comment.') ); 68 68 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'); 70 72 71 73 $comment_id = wp_new_comment( $commentdata );
Note: See TracChangeset
for help on using the changeset viewer.