From 8e4b0c2c45c3702dc4650d3dc281a1909f28e5de Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 19 Nov 2019 11:07:03 +0000 Subject: [PATCH] XML-RPC: Pass correct variable as the URL parameter to `http_headers_useragent` filter in `wp_xmlrpc_server::pingback_ping()`. Props wpgurudev, andreaitm. Fixes #48721. See #42186. Built from https://develop.svn.wordpress.org/trunk@46750 git-svn-id: http://core.svn.wordpress.org/trunk@46550 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-xmlrpc-server.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 57d5937ffe..3f7dbe300f 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -6848,7 +6848,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' ), $url ); + $user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ), $pagelinkedfrom ); // Let's check the remote site $http_api_args = array( diff --git a/wp-includes/version.php b/wp-includes/version.php index 9e7a4c3a80..d5283b1f15 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46749'; +$wp_version = '5.4-alpha-46750'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.