From 6ae2e24d28f920cc7876e1b14a457a970ae65dd1 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 20 Oct 2015 05:18:15 +0000 Subject: [PATCH] XML-RPC: after [35095], change the name of the `xmlrpc_memory_limit` filter to `xmlrpc_chunk_parsing_size`. Props ankit.gade. Fixes #29957. git-svn-id: https://develop.svn.wordpress.org/trunk@35279 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-IXR.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 {