﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
4011,add global proxy support in options,tmountjr,jacobsantos,"I use the 2.2-bleeding SVN build of WP on a local install to test upcoming changes to the system before putting them on my live blog. In order to test accurately, I installed FeedWordPress to pull my live RSS feed. I couldn't figure out why it wouldn't pull my feeds (even after adding all the appropriate snoopy proxy variables in the plugin) unless I set the proxy in wp-includes/class-snoopy.php. [http://trac.wordpress.org/ticket/3082 Ticket 3082] details the same problem. Perhaps a set of define statements could be added to wp-config.php:

define('WP_PROXYHOST', 'proxy.server.com');
define('WP_PROXYPORT', '8080');
define('WP_USEPROXY', 'TRUE');

In wp-includes/class-snoopy.php, for instance, the current code could be changed to respect the proxy settings if entered:

var $proxy_host = WP_PROXYHOST;
var $proxy_port = WP_PROXYPORT;
var $_isproxy = (WP_USEPROXY == 'TRUE') : true ? false;

These settings could also be carried over to Akismet and any other class that uses snoopy or fsockopen; I successfully tested this in class-snoopy.php. Besides not remembering my ternary operators for the _isproxy variable, the change works and applies to all instances where WP is using snoopy to get something from the web.

I'd be happy to work up something official if anyone thinks it's worth it...",task (blessed),closed,normal,2.8,HTTP,2.2,normal,fixed,proxy has-patch needs-testing,westi
