XML-RPC: after [35095], change the name of the `xmlrpc_memory_limit` filter to `xmlrpc_chunk_parsing_size`.
Props ankit.gade. Fixes #29957. Built from https://develop.svn.wordpress.org/trunk@35279 git-svn-id: http://core.svn.wordpress.org/trunk@35245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c5b6202dfa
commit
5d63788d9a
|
@ -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 {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-35278';
|
||||
$wp_version = '4.4-alpha-35279';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue