WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/06/2015 05:46:30 PM (6 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r34855 r34876  
    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'];
Note: See TracChangeset for help on using the changeset viewer.