Skip to content

Commit

Permalink
fix: do not send non-replaced string if term is not there
Browse files Browse the repository at this point in the history
  • Loading branch information
humet committed Apr 19, 2024
1 parent aefd2b8 commit 19745fd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ public static function rewrite_placeholders( $items, $post ) {
foreach ( $terms as $term ) {
$new_items[] = str_replace( '%' . $placeholder . '%', $term, $current_item );
}
} else {
$new_items[] = $current_item;
}
break;
}
Expand Down

0 comments on commit 19745fd

Please sign in to comment.