WordPress.org

Make WordPress Core

Ticket #20222: 20222.patch

File 20222.patch, 1.0 KB (added by johnbillion, 6 years ago)
  • wp-includes/class-http.php

     
    13271327         * hosts that won't be sent through the proxy.
    13281328         *
    13291329         * @uses WP_PROXY_BYPASS_HOSTS
     1330         * @uses WP_PROXY_LOCAL_HOSTS
    13301331         * @since 2.8.0
    13311332         *
    13321333         * @param string $uri URI to check.
     
    13441345                $home = parse_url( get_option('siteurl') );
    13451346
    13461347                if ( $check['host'] == 'localhost' || $check['host'] == $home['host'] )
    1347                         return false;
     1348                        return WP_PROXY_LOCAL_HOSTS;
    13481349
    13491350                if ( !defined('WP_PROXY_BYPASS_HOSTS') )
    13501351                        return true;
  • wp-includes/default-constants.php

     
    6969
    7070        if ( !defined('SHORTINIT') )
    7171                define('SHORTINIT', false);
     72
     73        if ( !defined('WP_PROXY_LOCAL_HOSTS') )
     74                define('WP_PROXY_LOCAL_HOSTS', false);
    7275}
    7376
    7477/**