From 08b4cab653ade0b141051dc19477f9e2e9dcab69 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 6 May 2021 13:57:18 +0000 Subject: [PATCH] Docs: Correct documentation for `wp_get_webp_info()` return results. Follow-up to [50810], [50814], [50815], [50818], [50819]. See #35725. git-svn-id: https://develop.svn.wordpress.org/trunk@50820 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index c1dc3886f7..5aef552a3c 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -5056,9 +5056,10 @@ function wp_getimagesize( $filename, array &$image_info = null ) { * An array of WebP image information. * * @type array $size { - * @type int $width Image width. - * @type int $height Image height. - * @type bool $type The WebP type: one of 'lossy', 'lossless' or 'animated-alpha'. + * @type int|false $width Image width on success, false on failure. + * @type int|false $height Image height on success, false on failure. + * @type string|false $type The WebP type: one of 'lossy', 'lossless' or 'animated-alpha'. + * False on failure. * } */ function wp_get_webp_info( $filename ) {