[wp-trac] [WordPress Trac] #24646: fetch_feed() returns WP_Error with "A valid URL was not provided"

WordPress Trac noreply at wordpress.org
Wed Nov 27 12:14:51 UTC 2013


#24646: fetch_feed() returns WP_Error with "A valid URL was not provided"
--------------------------+-----------------------
 Reporter:  husdaman      |       Owner:  nacin
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  3.5.3
Component:  Feeds         |     Version:  3.5.2
 Severity:  major         |  Resolution:
 Keywords:  fixed-major   |
--------------------------+-----------------------

Comment (by stefwilliams):

 I've been having this same problem, trying to load a local RSS feed using
 wp_widget_rss_output in a mu_plugin, but I can't get wp_safe_remote_* to
 work...

 I specifically pass in the $args with 'reject_unsafe_urls' as false, but
 when it gets round to running the request in WP_Http, an error_log of the
 args are coming out with 'reject_unsafe_urls' as true, so it fails...

 Can you give an example of how to use wp_safe_remote_* properly? Or do I
 pass the arguments into wp_widget_rss_output somehow?

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24646#comment:49>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list