[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 5 16:00:53 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 husdaman):
Replying to [comment:33 tjb1013]:
> Replying to [comment:32 nacin]:
> > The proper check would instead be:
> > {{{
> > add_filter( 'http_request_args', function( $args ) {
> > $args['reject_unsafe_urls'] = false;
> > return $args;
> > } );
> > }}}
> >
> > The http_request_reject_unsafe_urls filter only covers defaults.
>
> That worked, thanks.
I'm trying to apply this but keep getting Parse error: syntax error,
unexpected T_FUNCTION
Can't figure out where it's occurring. I also put this in my function.php
file correct?
I also wanted to point out that I've imported a site from our hwdsb
network to a multisite setup and it does not import media anymore. Do you
think this is related? Basically I get "Failed to import Media “kg1”"
etc.. When I check the media section, nothing is there. When I check the
appropriate directory, nothing is there either.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24646#comment:34>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list