[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:03:51 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 nacin):
Replying to [comment:34 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
You're running PHP 5.2. Please update to a newer version, like 5.3 or 5.4.
5.5 was also just released last month. Or, rewrite the code to work in PHP
5.2.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24646#comment:35>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list