Add missing documentation for the xmlrpc_element_limit hook in wp-includes/class-IXR.php.
Props ankitgadertcampcom, kpdesign. Fixes #29977. Built from https://develop.svn.wordpress.org/trunk@30744 git-svn-id: http://core.svn.wordpress.org/trunk@30734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -228,6 +228,13 @@ class IXR_Message
|
|||||||
// Bail if there are too many elements to parse
|
// Bail if there are too many elements to parse
|
||||||
$element_limit = 30000;
|
$element_limit = 30000;
|
||||||
if ( function_exists( 'apply_filters' ) ) {
|
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 );
|
$element_limit = apply_filters( 'xmlrpc_element_limit', $element_limit );
|
||||||
}
|
}
|
||||||
if ( $element_limit && 2 * $element_limit < substr_count( $this->message, '<' ) ) {
|
if ( $element_limit && 2 * $element_limit < substr_count( $this->message, '<' ) ) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-beta2-30743';
|
$wp_version = '4.1-beta2-30744';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|||||||
Reference in New Issue
Block a user