Skip to content

Commit 46bbcf6

Browse files
committed
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
1 parent 492b8db commit 46bbcf6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/wp-includes/class-IXR.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,13 @@ function parse()
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 elements limit.
237+
*/
231238
$element_limit = apply_filters( 'xmlrpc_element_limit', $element_limit );
232239
}
233240
if ( $element_limit && 2 * $element_limit < substr_count( $this->message, '<' ) ) {

0 commit comments

Comments
 (0)