Skip to content

Commit 1e04278

Browse files
fix: removed args
1 parent 241c7b1 commit 1e04278

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

includes/admin/feedzy-rss-feeds-actions.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -422,13 +422,8 @@ private function search_replace() {
422422
* Paraphrase content with feedzy default service.
423423
*/
424424
private function paraphrase_content() {
425-
if ( 'item_title' === $this->current_job->tag ) {
426-
$content = call_user_func( array( $this, $this->current_job->tag ) );
427-
$content = apply_filters( 'feedzy_invoke_content_rewrite_services', $content, '[#title_feedzy_rewrite]', $this->job, $this->item );
428-
} else {
429-
$content = call_user_func( array( $this, $this->current_job->tag ) );
430-
$content = apply_filters( 'feedzy_invoke_content_rewrite_services', $content, '[#content_feedzy_rewrite]', $this->job, $this->item );
431-
}
425+
$content = call_user_func( array( $this, $this->current_job->tag ) );
426+
$content = apply_filters( 'feedzy_invoke_content_rewrite_services', $content, '[#content_feedzy_rewrite]', $this->job, $this->item );
432427
return $content;
433428
}
434429

includes/admin/feedzy-rss-feeds-import.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,6 +1858,7 @@ function ( $attr, $key ) {
18581858
$title_feedzy_rewrite = apply_filters( 'feedzy_invoke_content_rewrite_services', $item['item_title'], '[#title_feedzy_rewrite]', $job, $item );
18591859
$post_title = str_replace( '[#title_feedzy_rewrite]', $title_feedzy_rewrite, $post_title );
18601860
}
1861+
$post_title = wp_strip_all_tags( $post_title );
18611862

18621863
$image_html = '';
18631864
if ( ! empty( $item['item_img_path'] ) ) {

0 commit comments

Comments
 (0)