Ryan slays the dragon. (Some of these return WP_Error objects.)

git-svn-id: https://develop.svn.wordpress.org/trunk@5089 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2007-03-23 02:05:29 +00:00
parent df22b0ccc9
commit d57901d29a
10 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ if ( '' == $comment_content )
$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'user_ID');
$comment_id = (int) wp_new_comment( $commentdata );
$comment_id = wp_new_comment( $commentdata );
$comment = get_comment($comment_id);
if ( !$user->ID ) :