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
This commit is contained in:
Scott Taylor 2015-10-20 05:18:15 +00:00
parent b18755172b
commit 6ae2e24d28
1 changed files with 3 additions and 2 deletions

View File

@ -271,14 +271,15 @@ class IXR_Message
// 256Kb, parse in chunks to avoid the RAM usage on very large messages // 256Kb, parse in chunks to avoid the RAM usage on very large messages
$xmlrpc_memory_limit = 262144; $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 * @since 4.4.0
* *
* @param int $xmlrpc_memory_limit Default value of memory allotted. * @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; $final = false;
do { do {