--- a/wp/wp-includes/class-wp-http-encoding.php Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-includes/class-wp-http-encoding.php Wed Sep 21 18:19:35 2022 +0200
@@ -27,7 +27,7 @@
* @param int $level Optional. Compression level, 9 is highest. Default 9.
* @param string $supports Optional, not used. When implemented it will choose
* the right compression based on what the server supports.
- * @return string|false False on failure.
+ * @return string|false Compressed string on success, false on failure.
*/
public static function compress( $raw, $level = 9, $supports = null ) {
return gzdeflate( $raw, $level );
@@ -45,7 +45,7 @@
*
* @param string $compressed String to decompress.
* @param int $length The optional length of the compressed data.
- * @return string|bool False on failure.
+ * @return string|false Decompressed string on success, false on failure.
*/
public static function decompress( $compressed, $length = null ) {
@@ -98,7 +98,7 @@
* @link https://www.php.net/manual/en/function.gzinflate.php#77336
*
* @param string $gzData String to decompress.
- * @return string|bool False on failure.
+ * @return string|false Decompressed string on success, false on failure.
*/
public static function compatible_gzinflate( $gzData ) {