Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

VladimirPanek on "RSS WP HTTP Error: A valid URL was not provided. 'reject_unsafe_urls'"

$
0
0

Hello,

I have RSS feed on the same server that I need to display on my WP site.

I was looking around and found only one solution.
Add this code in the function.php to accept any bad urls

function http_request_local( $args ) {
$args['reject_unsafe_urls'] = false;
return $args;
}
add_filter( 'http_request_args', 'http_request_local' );

Is there a way to set this so that this script allow only one url and works for the rest?


Viewing all articles
Browse latest Browse all 8245

Trending Articles