[wp-trac] [WordPress Trac] #4011: add global proxy support in options

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 21 20:32:52 GMT 2007


#4011: add global proxy support in options
-------------------------+--------------------------------------------------
 Reporter:  tmountjr     |       Owner:  anonymous   
     Type:  enhancement  |      Status:  new         
 Priority:  normal       |   Milestone:              
Component:  General      |     Version:  2.2         
 Severity:  normal       |    Keywords:  proxy snoopy
-------------------------+--------------------------------------------------
 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...

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4011>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list