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
This commit is contained in:
John Blackbourn
2026-03-10 12:15:48 +00:00
parent cc4246cd13
commit ccc5ded2b6
2 changed files with 2 additions and 2 deletions

View File

@@ -89,7 +89,7 @@ class WP_HTTP_IXR_Client extends IXR_Client {
echo '<pre class="ixr_request">' . htmlspecialchars( $xml ) . "\n</pre>\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();

View File

@@ -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.