Changeset 22370
- Timestamp:
- 11/05/2012 04:49:10 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r22212 r22370 750 750 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'comment_parent', 'user_ID'); 751 751 752 $comment_id = wp_new_comment( $commentdata );753 $comment = get_comment($comment_id);754 if ( ! $comment ) wp_die( 1 );755 756 $position = ( isset($_POST['position']) && (int) $_POST['position'] ) ? (int) $_POST['position'] : '-1';757 758 752 // automatically approve parent comment 759 753 if ( !empty($_POST['approve_parent']) ) { … … 765 759 } 766 760 } 761 762 $comment_id = wp_new_comment( $commentdata ); 763 $comment = get_comment($comment_id); 764 if ( ! $comment ) wp_die( 1 ); 765 766 $position = ( isset($_POST['position']) && (int) $_POST['position'] ) ? (int) $_POST['position'] : '-1'; 767 767 768 768 ob_start();
Note: See TracChangeset
for help on using the changeset viewer.