Ticket #20222: 20222.patch
File 20222.patch, 1.0 KB (added by , 13 years ago) |
---|
-
wp-includes/class-http.php
1327 1327 * hosts that won't be sent through the proxy. 1328 1328 * 1329 1329 * @uses WP_PROXY_BYPASS_HOSTS 1330 * @uses WP_PROXY_LOCAL_HOSTS 1330 1331 * @since 2.8.0 1331 1332 * 1332 1333 * @param string $uri URI to check. … … 1344 1345 $home = parse_url( get_option('siteurl') ); 1345 1346 1346 1347 if ( $check['host'] == 'localhost' || $check['host'] == $home['host'] ) 1347 return false;1348 return WP_PROXY_LOCAL_HOSTS; 1348 1349 1349 1350 if ( !defined('WP_PROXY_BYPASS_HOSTS') ) 1350 1351 return true; -
wp-includes/default-constants.php
69 69 70 70 if ( !defined('SHORTINIT') ) 71 71 define('SHORTINIT', false); 72 73 if ( !defined('WP_PROXY_LOCAL_HOSTS') ) 74 define('WP_PROXY_LOCAL_HOSTS', false); 72 75 } 73 76 74 77 /**