From 843cdf1f73d16f17bccb3d1b83b28fa3f7d8464b Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 6 Oct 2015 17:46:30 +0000 Subject: [PATCH] Docs: Update an inline comment in `wp_get_attachment_image_sizes()`, which came in as part of the Responsive Images merge in [34855]. Props joemcgill. See #33641. git-svn-id: https://develop.svn.wordpress.org/trunk@34876 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 56c7f93ec7..e0ed8f4bd6 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -992,7 +992,7 @@ function wp_get_attachment_image_srcset( $attachment_id, $size = 'medium' ) { */ function wp_get_attachment_image_sizes( $attachment_id, $size = 'medium', $args = null ) { - // Try to get the image width from $args before calling image_downsize(). + // Try to get the image width from $args. if ( is_array( $args ) && ! empty( $args['width'] ) ) { $img_width = (int) $args['width']; } elseif ( $img = image_get_intermediate_size( $attachment_id, $size ) ) {