[wp-trac] [WordPress Trac] #24646: fetch_feed() returns WP_Error with "A valid URL was not provided"
WordPress Trac
noreply at wordpress.org
Fri Jul 26 22:19:36 UTC 2013
#24646: fetch_feed() returns WP_Error with "A valid URL was not provided"
--------------------------+--------------------
Reporter: husdaman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5.3
Component: Feeds | Version: 3.5.2
Severity: major | Resolution:
Keywords: |
--------------------------+--------------------
Comment (by bmzero):
We are running an older version of PHP (v 5.2.17). The above code was
rewritten to run on our version and placed in our functions.php file.
{{{
function allow_unsafe_urls ( $args ) {
$args['reject_unsafe_urls'] = false;
return $args;
} ;
add_filter( 'http_request_args', 'allow_unsafe_urls' );
}}}
This fixes the issue for our system.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24646#comment:39>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list