diff --git a/src/wp-includes/class-IXR.php b/src/wp-includes/class-IXR.php index 9109cbd4d6..485f63eb5d 100644 --- a/src/wp-includes/class-IXR.php +++ b/src/wp-includes/class-IXR.php @@ -271,14 +271,15 @@ class IXR_Message // 256Kb, parse in chunks to avoid the RAM usage on very large messages $xmlrpc_memory_limit = 262144; + /** - * Filter the maximum memory that can be used to parse an XML-RPC reponse message. + * Filter the chunk size that can be used to parse an XML-RPC reponse message. * * @since 4.4.0 * * @param int $xmlrpc_memory_limit Default value of memory allotted. */ - $chunk_size = apply_filters( 'xmlrpc_memory_limit', $xmlrpc_memory_limit ); + $chunk_size = apply_filters( 'xmlrpc_chunk_parsing_size', $xmlrpc_memory_limit ); $final = false; do {