From 46bbcf649a088115369665d0e73697194136c271 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Fri, 5 Dec 2014 03:27:02 +0000 Subject: [PATCH] Add missing documentation for the `xmlrpc_element_limit` hook in wp-includes/class-IXR.php. Props ankitgadertcampcom, kpdesign. Fixes #29977. git-svn-id: https://develop.svn.wordpress.org/trunk@30744 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-IXR.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/wp-includes/class-IXR.php b/src/wp-includes/class-IXR.php index e3ebddd28b..91b65e96bf 100644 --- a/src/wp-includes/class-IXR.php +++ b/src/wp-includes/class-IXR.php @@ -228,6 +228,13 @@ class IXR_Message // Bail if there are too many elements to parse $element_limit = 30000; if ( function_exists( 'apply_filters' ) ) { + /** + * Filter 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, '<' ) ) {