[wp-trac] [WordPress Trac] #26353: wp_safe_remote_*() functions do not appear to work
WordPress Trac
noreply at wordpress.org
Mon Dec 2 10:37:42 UTC 2013
#26353: wp_safe_remote_*() functions do not appear to work
-------------------------------+------------------------------
Reporter: stefwilliams | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.7.1
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Comment (by stefwilliams):
@TobiasBg:
As far as I can tell, the parameters it takes are a URL (presumably of the
site that you want to mark as 'safe'). I have tried passing this with and
without the protocol and with and without the directory names.
No matter what I try, my custom RSS widget in the admin dashboard still
says:
RSS Error: WP HTTP Error: A valid URL was not provided.
It is definitely a valid URL that I am passing in...
The functions also allow $args to be passed in, the default being
$args['reject_unsafe_urls'] = true;
But changing this to false does not work either.
All I'm trying to do is pass an RSS feed from a site on the same multisite
install into the admin dash panel...
@dd32:
Your answer came while I was writing this. In ticket 24646, it seems to
suggest that wp_safe_remote_* IS for this purpose, as opposed to
wp_remote_*(), which block access...?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26353#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list