diff --git a/wp-admin/includes/comment.php b/wp-admin/includes/comment.php index b731624d0..7171d31b5 100644 --- a/wp-admin/includes/comment.php +++ b/wp-admin/includes/comment.php @@ -41,7 +41,8 @@ function edit_comment() { } function get_comment_to_edit( $id ) { - $comment = get_comment( $id ); + if ( !$comment = get_comment($id) ) + return false; $comment->comment_ID = (int) $comment->comment_ID; $comment->comment_post_ID = (int) $comment->comment_post_ID;