Skip to content

Commit

Permalink
Use wp_safe_remote_get instead of wp_remote_get Codeinwp/feedzy-rss-f…
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Jan 10, 2024
1 parent 404d8e7 commit 8c7ac6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/abstract/feedzy-rss-feeds-admin-abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ function() {
$feed = $this->init_feed( $feed_url, $cache, $sc, false );
} elseif ( is_string( $feed_url ) || ( is_array( $feed_url ) && 1 === count( $feed_url ) ) ) {
do_action( 'themeisle_log_event', FEEDZY_NAME, 'Trying to use raw data', 'debug', __FILE__, __LINE__ );
$data = wp_remote_retrieve_body( wp_remote_get( $feed_url, array( 'user-agent' => $default_agent ) ) );
$data = wp_remote_retrieve_body( wp_safe_remote_get( $feed_url, array( 'user-agent' => $default_agent ) ) );
$cloned_feed->set_raw_data( $data );
$cloned_feed->init();
$error_raw = $cloned_feed->error();
Expand Down

0 comments on commit 8c7ac6e

Please sign in to comment.