mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
HTTP API: Add the URL as a paramter to various HTTP related filters.
Props paulschreiber, purnendu Fixes #42186 git-svn-id: https://develop.svn.wordpress.org/trunk@42682 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -6744,7 +6744,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
$remote_ip = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] );
|
||||
|
||||
/** This filter is documented in wp-includes/class-http.php */
|
||||
$user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ) );
|
||||
$user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ), $url );
|
||||
|
||||
// Let's check the remote site
|
||||
$http_api_args = array(
|
||||
|
||||
Reference in New Issue
Block a user