X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/0461a5f2e55c8d5f1fde96ca2e83117152573c7d..5d244c8fd9a27c9f89dd08da2af6fbc67d4fce63:/wp-includes/class-IXR.php?ds=sidebyside diff --git a/wp-includes/class-IXR.php b/wp-includes/class-IXR.php index f576719c..91b65e96 100644 --- a/wp-includes/class-IXR.php +++ b/wp-includes/class-IXR.php @@ -151,7 +151,7 @@ class IXR_Value { /** * Checks whether or not the supplied array is a struct or not * - * @param unknown_type $array + * @param array $array * @return boolean */ function isStruct($array) @@ -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, '<' ) ) { @@ -358,7 +365,7 @@ class IXR_Message $this->_arraystructs[count($this->_arraystructs)-1][] = $value; } } else { - // Just add as a paramater + // Just add as a parameter $this->params[] = $value; } } @@ -451,7 +458,7 @@ EOD; // Perform the callback and send the response if (count($args) == 1) { - // If only one paramater just send that instead of the whole array + // If only one parameter just send that instead of the whole array $args = $args[0]; }