diff --git src/wp-includes/media.php src/wp-includes/media.php
index 56c7f93..e0ed8f4 100644
|
|
function wp_get_attachment_image_srcset( $attachment_id, $size = 'medium' ) { |
992 | 992 | */ |
993 | 993 | function wp_get_attachment_image_sizes( $attachment_id, $size = 'medium', $args = null ) { |
994 | 994 | |
995 | | // Try to get the image width from $args before calling image_downsize(). |
| 995 | // Try to get the image width from $args. |
996 | 996 | if ( is_array( $args ) && ! empty( $args['width'] ) ) { |
997 | 997 | $img_width = (int) $args['width']; |
998 | 998 | } elseif ( $img = image_get_intermediate_size( $attachment_id, $size ) ) { |