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
This commit is contained in:
parent
1949734cf3
commit
843cdf1f73
@ -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 ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user