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

WordPress Trac noreply at wordpress.org
Mon Jul 18 15:18:29 UTC 2016


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

Comment (by landed):

 Hi - Sorry to post in a closed thread but I feel it could be the place for
 further info for future peops coming here.
 {{{#!php
 <?php
 $safefeed = wp_safe_remote_get($feedurl)
 $rss = fetch_feed( $safefeed );
 }}}
 Not sure that its simply a wrapper but I didn't understand what is
 returned by this function It actually looks to return the actual request
 somehow...

 I am still getting these issues that are in this thread using 4.5.3 so I
 would have thought there is now a good way to be safe and allow my feed
 from same domain but different subdomain.

 lesite.com (where I want the feed )
 rss.lesite.com (this is theproblem url...)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24646#comment:51>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list