Skip to content

Commit 6e82359

Browse files
committed
fix: unit tests
1 parent 8c1711e commit 6e82359

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

includes/util/feedzy-rss-feeds-conditions.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ public function evaluate_conditions( $continue, $attrs, $item, $feed_url, $index
236236
return $continue;
237237
}
238238

239+
if ( ! isset( $attrs['filters'] ) || empty( $attrs['filters'] ) ) {
240+
return $continue;
241+
}
242+
239243
$filters = json_decode( $attrs['filters'], true );
240244

241245
if ( ! is_array( $filters ) ) {

0 commit comments

Comments
 (0)