Make WordPress Core

Changeset 21225


Ignore:
Timestamp:
07/07/2012 02:27:13 AM (12 years ago)
Author:
dd32
Message:

WP_HTTP: Add a filter to WP_HTTP_Proxy::send_through_proxy() to allow for plugins to modify which requests are sent to a proxy dynamically. Fixes #20222

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-http.php

    r20767 r21225  
    13921392
    13931393        $home = parse_url( get_option('siteurl') );
     1394
     1395        $result = apply_filters( 'pre_http_send_through_proxy', null, $uri, $check, $home );
     1396        if ( ! is_null( $result ) )
     1397            return $result;
    13941398
    13951399        if ( $check['host'] == 'localhost' || $check['host'] == $home['host'] )
Note: See TracChangeset for help on using the changeset viewer.