Skip to content

Commit 2569ec8

Browse files
authored
Merge pull request #1134 from xwp/tests/comments-connector
Comments connector test implemented
2 parents a259e71 + 880b3ff commit 2569ec8

File tree

2 files changed

+486
-0
lines changed

2 files changed

+486
-0
lines changed

connectors/class-connector-comments.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,10 @@ public function callback_comment_duplicate_trigger( $comment_data ) {
615615
global $wpdb;
616616
unset( $comment_data );
617617

618+
if ( ! empty( $wpdb->last_result ) ) {
619+
return;
620+
}
621+
618622
$comment_id = $wpdb->last_result[0]->comment_ID;
619623
$comment = get_comment( $comment_id );
620624

0 commit comments

Comments
 (0)