Skip to content

Commit

Permalink
Fix PHPUnit testcases error Codeinwp/feedzy-rss-feeds-pro#637
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Jan 22, 2024
1 parent 79e512e commit 8b612e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/admin/feedzy-rss-feeds-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function run_action_job( $post_content, $import_translation_lang, $job, $
if ( 'item_image' === $this->type ) {
$this->post_content = str_replace( $replace_to, $this->result, wp_json_encode( $replace_with ) );
} else {
$this->post_content = str_replace( $replace_to, $this->result, wp_json_encode( $replace_with ) );
$this->post_content = str_replace( $replace_to, $this->result, $this->post_content );
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions includes/admin/feedzy-rss-feeds-import.php
Original file line number Diff line number Diff line change
Expand Up @@ -1531,9 +1531,10 @@ private function run_job( $job, $max ) {
$post_content = apply_filters( 'feedzy_invoke_services', $post_content, 'full_content', $full_content, $job );
}
// Item content action.
$content_action = $this->handle_content_actions( $import_content, 'item_content' );
$content_action = $this->handle_content_actions( $post_content, 'item_content' );
$post_content = $content_action->get_tags();
// Item content action process.
$post_content = $content_action->run_action_job( $import_content, $import_translation_lang, $job, $language_code, $item );
$post_content = $content_action->run_action_job( $post_content, $import_translation_lang, $job, $language_code, $item );
// Parse custom tags.
if ( $this->feedzy_is_business() ) {
$post_content = apply_filters( 'feedzy_parse_custom_tags', $post_content, $item_obj );
Expand Down

0 comments on commit 8b612e1

Please sign in to comment.