diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 1f6e113ac8..90b4a9cb50 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -5389,7 +5389,13 @@ class wp_xmlrpc_server extends IXR_Server { sleep(1); // Let's check the remote site - $linea = wp_remote_retrieve_body( wp_remote_get( $pagelinkedfrom, array( 'timeout' => 10, 'redirection' => 0, 'reject_unsafe_urls' => true ) ) ); + $http_api_args = array( + 'timeout' => 10, + 'redirection' => 0, + 'reject_unsafe_urls' => true, + 'limit_response_size' => 153600, // 150 KB + ); + $linea = wp_remote_retrieve_body( wp_remote_get( $pagelinkedfrom, $http_api_args ) ); if ( !$linea ) return $this->pingback_error( 16, __( 'The source URL does not exist.' ) );