Docs: Add missing parameter and return descriptions to the DocBlock for `WP_Http_Curl::stream_body()`.
See #32246. Built from https://develop.svn.wordpress.org/trunk@35937 git-svn-id: http://core.svn.wordpress.org/trunk@35901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8d884c25a3
commit
64ea48f76a
|
@ -316,14 +316,18 @@ class WP_Http_Curl {
|
|||
}
|
||||
|
||||
/**
|
||||
* Grab the body of the cURL request
|
||||
* Grabs the body of the cURL request.
|
||||
*
|
||||
* The contents of the document are passed in chunks, so we append to the $body property for temporary storage.
|
||||
* Returning a length shorter than the length of $data passed in will cause cURL to abort the request with CURLE_WRITE_ERROR
|
||||
* The contents of the document are passed in chunks, so we append to the `$body`
|
||||
* property for temporary storage. Returning a length shorter than the length of
|
||||
* `$data` passed in will cause cURL to abort the request with `CURLE_WRITE_ERROR`.
|
||||
*
|
||||
* @since 3.6.0
|
||||
* @access private
|
||||
* @return int
|
||||
*
|
||||
* @param resource $handle cURL handle.
|
||||
* @param string $headers cURL request headers.
|
||||
* @return int Total bytes of data written.
|
||||
*/
|
||||
private function stream_body( $handle, $data ) {
|
||||
$data_length = strlen( $data );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-35935';
|
||||
$wp_version = '4.5-alpha-35937';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue