From 7e33f4a479749ea048cd2d3a9e26f371cd86fb25 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 2 Apr 2010 05:01:13 +0000 Subject: [PATCH] Fix notice in wp_new_comment(). fixes #10854. git-svn-id: https://develop.svn.wordpress.org/trunk@13937 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index a78d4b1208..84fbf28163 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -1275,7 +1275,7 @@ function wp_new_comment( $commentdata ) { $post = &get_post($commentdata['comment_post_ID']); // Don't notify if it's your own comment if ( get_option('comments_notify') && $commentdata['comment_approved'] && ( ! isset( $commentdata['user_id'] ) || $post->post_author != $commentdata['user_id'] ) ) - wp_notify_postauthor($comment_ID, $commentdata['comment_type']); + wp_notify_postauthor($comment_ID, empty( $commentdata['comment_type'] ) ? $commentdata['comment_type'] : '' ); } return $comment_ID;