WordPress.org

Make WordPress Core

Ticket #29977: 29977.3.diff

File 29977.3.diff, 799 bytes (added by kpdesign, 7 years ago)

3rd pass

  • src/wp-includes/class-IXR.php

     
    228228        // Bail if there are too many elements to parse
    229229        $element_limit = 30000;
    230230        if ( function_exists( 'apply_filters' ) ) {
     231            /**
     232             * Filter the number of elements to parse in an XML-RPC response.
     233             *
     234             * @since 4.0.0
     235             *
     236             * @param int $element_limit Default element limit.
     237             */
    231238            $element_limit = apply_filters( 'xmlrpc_element_limit', $element_limit );
    232239        }
    233240        if ( $element_limit && 2 * $element_limit < substr_count( $this->message, '<' ) ) {