[wp-trac] [WordPress Trac] #42186: Ability to pass hostname/url to https_ssl_verify filter
WordPress Trac
noreply at wordpress.org
Wed Nov 1 05:30:36 UTC 2017
#42186: Ability to pass hostname/url to https_ssl_verify filter
----------------------------------------+------------------------------
Reporter: paulschreiber | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses:
----------------------------------------+------------------------------
Changes (by dd32):
* keywords: => needs-patch good-first-bug
Comment:
Passing some context to the `http_*` filters seems like a good request.
For reference, here's the current HTTP filters, roughly divided into those
with context, and those without. Not all of these will need context, such
as `block_local_requests`:
{{{
apply_filters( 'http_request_args', $r, $url )
apply_filters( 'pre_http_request', false, $r, $url )
apply_filters( 'http_response', $response, $r, $url )
apply_filters( 'http_api_transports', $transports, $args, $url )
apply_filters( 'http_response', $response, $args, $url )
apply_filters( 'http_request_timeout', 5 )
apply_filters( 'http_request_redirection_count', 5 )
apply_filters( 'http_request_version', '1.0' )
apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo(
'version' ) . '; ' . get_bloginfo( 'url' ) )
apply_filters( 'http_request_reject_unsafe_urls', false )
apply_filters( 'https_ssl_verify', $options['verify'] )
apply_filters( 'block_local_requests', false )
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42186#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list