mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Improve various @param docs for src/wp-includes/*.
See #30224. git-svn-id: https://develop.svn.wordpress.org/trunk@30681 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -299,7 +299,7 @@ class WP_Http {
|
||||
* @param array $args Request arguments
|
||||
* @param string $url URL to Request
|
||||
*
|
||||
* @return string|bool Class name for the first transport that claims to support the request. False if no transport claims to support the request.
|
||||
* @return string|false Class name for the first transport that claims to support the request. False if no transport claims to support the request.
|
||||
*/
|
||||
public function _get_first_available_transport( $args, $url = null ) {
|
||||
/**
|
||||
@@ -2080,7 +2080,7 @@ class WP_Http_Encoding {
|
||||
* @param string $raw String to compress.
|
||||
* @param int $level Optional, default is 9. Compression level, 9 is highest.
|
||||
* @param string $supports Optional, not used. When implemented it will choose the right compression based on what the server supports.
|
||||
* @return string|bool False on failure.
|
||||
* @return string|false False on failure.
|
||||
*/
|
||||
public static function compress( $raw, $level = 9, $supports = null ) {
|
||||
return gzdeflate( $raw, $level );
|
||||
@@ -2180,6 +2180,8 @@ class WP_Http_Encoding {
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param string $url
|
||||
* @param array $args
|
||||
* @return string Types of encoding to accept.
|
||||
*/
|
||||
public static function accept_encoding( $url, $args ) {
|
||||
|
||||
Reference in New Issue
Block a user