WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/09/2018 06:10:15 PM (2 years ago)
Author:
johnbillion
Message:

HTTP API: Add the URL as a paramter to various HTTP related filters.

Props paulschreiber, purnendu

Fixes #42186

File:
1 edited

Legend:

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

    r42681 r42682  
    114114        if ( $is_local ) {
    115115            /** This filter is documented in wp-includes/class-wp-http-streams.php */
    116             $ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify );
     116            $ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify, $url );
    117117        } elseif ( ! $is_local ) {
    118118            /** This filter is documented in wp-includes/class-http.php */
    119             $ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify );
     119            $ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify, $url );
    120120        }
    121121
Note: See TracChangeset for help on using the changeset viewer.