Skip to content

Commit 45831ec

Browse files
committed
fix #464
1 parent 2d249be commit 45831ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

includes/class-sender.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ public static function publish_hook( $post_id ) {
5656
public static function comment_post( $id ) {
5757
$comment = get_comment( $id );
5858

59+
if ( ! $comment ) {
60+
return;
61+
}
62+
5963
// check parent comment
6064
if ( $comment->comment_parent ) {
6165
// get parent comment...

0 commit comments

Comments
 (0)