Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 0ab00fb

Browse files
authored
Fix for blank entries
Fixes pfefferle/wordpress-webmention#289 Fixes #219
1 parent 88bc8f9 commit 0ab00fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/class-linkbacks-mf2-handler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,14 @@ public static function generate_commentdata( $commentdata ) {
157157
$entries = self::get_entries( $mf_array );
158158

159159
if ( empty( $entries ) ) {
160-
return array();
160+
return $commentdata;
161161
}
162162

163163
// get the entry of interest
164164
$entry = self::get_representative_entry( $entries, $commentdata['target'] );
165165

166166
if ( empty( $entry ) ) {
167-
return array();
167+
return $commentdata;
168168
}
169169

170170
$commentdata['remote_source_mf2'] = $entry;

0 commit comments

Comments
 (0)