[wp-trac] [WordPress Trac] #22207: patch for adding proxy support to SimplePie class
WordPress Trac
noreply at wordpress.org
Wed Oct 17 08:27:32 UTC 2012
#22207: patch for adding proxy support to SimplePie class
--------------------------+-------------------------
Reporter: mrnipper | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Feeds | Version: 3.4.2
Severity: normal | Resolution: worksforme
Keywords: has-patch |
--------------------------+-------------------------
Changes (by dd32):
* status: new => closed
* resolution: => worksforme
* milestone: Awaiting Review =>
Comment:
When SimplePie is used via the WordPress API methods, it uses WP_HTTP for
outgoing requests, which respects the proxy settings.
It sounds like you're using SimplePie directly, which means you have to do
extra setup.
so either:
a. (preferably) Use [http://core.trac.wordpress.org/browser/trunk/wp-
includes/feed.php#L526 fetch_feed()]
or
b. Use the same logic inside [http://core.trac.wordpress.org/browser/trunk
/wp-includes/feed.php#L526 fetch_feed()] to set the File Class
(`$sp->set_file_class()`) - but ONLY if for some reason, you can't use
fetch_feed() AND you can't use the `wp_feed_options` filter to set the
custom options you need.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22207#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list