WordPress.org

Make WordPress Core

Ticket #29957: class-IXR-revision-3.diff

File class-IXR-revision-3.diff, 970 bytes (added by ankit.gade@…, 6 years ago)

Changed filter name from xmlrpc_memory_limit to xmlrpc_chunk_parsing_size

  • wp-includes/class-IXR.php

     
    271271
    272272        // 256Kb, parse in chunks to avoid the RAM usage on very large messages
    273273        $xmlrpc_memory_limit = 262144;
     274
    274275        /**
    275          * Filter the maximum memory that can be used to parse an XML-RPC reponse message.
     276         * Filter the chunk size that can be used to parse an XML-RPC reponse message.
     277                 * If server has good configuration, more RAM can be used to parse the data.
    276278         *
    277279         * @since 4.4.0
    278280         *
    279281         * @param int $xmlrpc_memory_limit Default value of memory allotted.
    280282         */
    281         $chunk_size = apply_filters( 'xmlrpc_memory_limit', $xmlrpc_memory_limit );
     283        $chunk_size = apply_filters( 'xmlrpc_chunk_parsing_size', $xmlrpc_memory_limit );
    282284
    283285        $final = false;
    284286        do {