Ticket #33641: 33641.diff
File 33641.diff, 563 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/media.php
1003 1003 * @return string|bool A valid source size value for use in a 'sizes' attribute or false. 1004 1004 */ 1005 1005 function wp_get_attachment_image_sizes( $attachment_id, $size = 'medium', $args = null ) { 1006 1006 $img_width = 0; 1007 1007 // Try to get the image width from $args. 1008 1008 if ( is_array( $args ) && ! empty( $args['width'] ) ) { 1009 1009 $img_width = (int) $args['width'];