Make WordPress Core

Changeset 35401


Ignore:
Timestamp:
10/26/2015 04:16:52 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Docs: After [34453], correct inline comments in wp_get_attachment_image_sizes().

Props jaspermdegroot.
Fixes #34453.

File:
1 edited

Legend:

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

    r35378 r35401  
    10441044 */
    10451045function wp_get_attachment_image_sizes( $attachment_id, $size = 'medium', $width = null ) {
    1046         // Try to get the image width from $args parameter.
     1046        // Try to get the image width from the $width parameter.
    10471047        if ( is_numeric( $width ) ) {
    10481048                $img_width = (int) $width;
    1049         // Next, use see if a width value was passed in the $size parameter.
     1049        // Next, see if a width value was passed in the $size parameter.
    10501050        } elseif ( is_array( $size ) ) {
    10511051                $img_width = $size[0];
     
    10561056        }
    10571057
    1058         // Bail early if $image_width isn't set.
     1058        // Bail early if $img_width isn't set.
    10591059        if ( ! $img_width ) {
    10601060                return false;
Note: See TracChangeset for help on using the changeset viewer.