Skip to content

Commit

Permalink
Merge pull request #1134 from xwp/tests/comments-connector
Browse files Browse the repository at this point in the history
Comments connector test implemented
  • Loading branch information
kidunot89 committed Jan 12, 2021
2 parents a259e71 + 880b3ff commit 2569ec8
Show file tree
Hide file tree
Showing 2 changed files with 486 additions and 0 deletions.
4 changes: 4 additions & 0 deletions connectors/class-connector-comments.php
Expand Up @@ -615,6 +615,10 @@ public function callback_comment_duplicate_trigger( $comment_data ) {
global $wpdb;
unset( $comment_data );

if ( ! empty( $wpdb->last_result ) ) {
return;
}

$comment_id = $wpdb->last_result[0]->comment_ID;
$comment = get_comment( $comment_id );

Expand Down

0 comments on commit 2569ec8

Please sign in to comment.