From 558984a8ab3c27961829b52c54c4d7f75cb4b6f2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 26 Oct 2015 16:16:52 +0000 Subject: [PATCH] Docs: After [34453], correct inline comments in `wp_get_attachment_image_sizes()`. Props jaspermdegroot. Fixes #34453. git-svn-id: https://develop.svn.wordpress.org/trunk@35401 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 4f43e59139..50d59a1de0 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -1043,10 +1043,10 @@ function wp_get_attachment_image_srcset( $attachment_id, $size = 'medium' ) { * @return string|bool A valid source size value for use in a 'sizes' attribute or false. */ function wp_get_attachment_image_sizes( $attachment_id, $size = 'medium', $width = null ) { - // Try to get the image width from $args parameter. + // Try to get the image width from the $width parameter. if ( is_numeric( $width ) ) { $img_width = (int) $width; - // Next, use see if a width value was passed in the $size parameter. + // Next, see if a width value was passed in the $size parameter. } elseif ( is_array( $size ) ) { $img_width = $size[0]; // Finally, use the $size name to return the width of the image. @@ -1055,7 +1055,7 @@ function wp_get_attachment_image_sizes( $attachment_id, $size = 'medium', $width $img_width = $image ? $image['width'] : false; } - // Bail early if $image_width isn't set. + // Bail early if $img_width isn't set. if ( ! $img_width ) { return false; }