Skip to content

Commit

Permalink
Remove redundant if check in SubscribedFeeds.
Browse files Browse the repository at this point in the history
See #1167.
  • Loading branch information
boonebgorges committed Sep 14, 2023
1 parent 29642ea commit bee741e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Admin/SubscribedFeeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public function pf_thing_trasher( $id = 0, $readability_status = 0, $item_type =
pf_log( 'On trash hook:' );

// Note: this will also remove feed items if a feed is deleted, is that something we want?
if ( $readability_status || $readability_status > 0 ) {
if ( $readability_status ) {
if ( 'feed_item' === $item_type ) {
$post_type = pf_feed_item_post_type();
} else {
Expand Down

0 comments on commit bee741e

Please sign in to comment.