wphooks.info - xmlrpc_element_limit

xmlrpc_element_limit

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/IXR/class-IXR-message.php:
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
        // Bail if there are too many elements to parse
        $element_limit = 30000;
        if ( function_exists( 'apply_filters' ) ) {
            /**
             * Filters the number of elements to parse in an XML-RPC response.
             *
             * @since 4.0.0
             *
             * @param int $element_limit Default elements limit.
             */
            $element_limit = apply_filters( 'xmlrpc_element_limit', $element_limit );
        }
        if ( $element_limit && 2 * $element_limit < substr_count( $this->message, '<' ) ) {
            return false;
        }

        $this->_parser = xml_parser_create();
        // Set XML parser to take the case of tags in to account
        xml_parser_set_option($this->_parser, XML_OPTION_CASE_FOLDING, false);
        // Set XML parser callback functions