WordPress.org

Make WordPress Core

Ticket #33641: 33641.3.patch

File 33641.3.patch, 643 bytes (added by joemcgill, 6 years ago)

Remove outdated inline comment.

  • src/wp-includes/media.php

    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' ) { 
    992992 */
    993993function wp_get_attachment_image_sizes( $attachment_id, $size = 'medium', $args = null ) {
    994994
    995         // Try to get the image width from $args before calling image_downsize().
     995        // Try to get the image width from $args.
    996996        if ( is_array( $args ) && ! empty( $args['width'] ) ) {
    997997                $img_width = (int) $args['width'];
    998998        } elseif ( $img = image_get_intermediate_size( $attachment_id, $size ) ) {