From ccc5ded2b688f281fbdeb28d62048e1405cadf44 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 10 Mar 2026 12:15:48 +0000 Subject: [PATCH] XML-RPC: Switch to `wp_safe_remote()` when fetching a pingback URL. Props xknown, johnbillion, peterwilsoncc. Built from https://develop.svn.wordpress.org/trunk@61879 git-svn-id: http://core.svn.wordpress.org/trunk@61161 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-http-ixr-client.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-http-ixr-client.php b/wp-includes/class-wp-http-ixr-client.php index f8b0b144f8..d4f7936cca 100644 --- a/wp-includes/class-wp-http-ixr-client.php +++ b/wp-includes/class-wp-http-ixr-client.php @@ -89,7 +89,7 @@ class WP_HTTP_IXR_Client extends IXR_Client { echo '
' . htmlspecialchars( $xml ) . "\n
\n\n"; } - $response = wp_remote_post( $url, $args ); + $response = wp_safe_remote_post( $url, $args ); if ( is_wp_error( $response ) ) { $errno = $response->get_error_code(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 3db6bfdeb1..83abed4505 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-beta3-61878'; +$wp_version = '7.0-beta3-61879'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.