WordPress.org

Make WordPress Core

Ticket #33641: 33641.diff

File 33641.diff, 563 bytes (added by wonderboymusic, 6 years ago)
  • src/wp-includes/media.php

     
    10031003 * @return string|bool A valid source size value for use in a 'sizes' attribute or false.
    10041004 */
    10051005function wp_get_attachment_image_sizes( $attachment_id, $size = 'medium', $args = null ) {
    1006 
     1006        $img_width = 0;
    10071007        // Try to get the image width from $args.
    10081008        if ( is_array( $args ) && ! empty( $args['width'] ) ) {
    10091009                $img_width = (int) $args['width'];