WordPress.org

Make WordPress Core

Changeset 35040


Ignore:
Timestamp:
10/12/2015 03:30:24 PM (5 years ago)
Author:
DrewAPicture
Message:

Docs: Adjust documentation for the $size parameter in wp_get_attachment_image_src() to clarify the required order of width and height values when passing an array.

See #34257.

File:
1 edited

Legend:

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

    r35039 r35040  
    708708 *
    709709 * @param int          $attachment_id Image attachment ID.
    710  * @param string|array $size          Optional. Registered image size to retrieve the source for or a flat
    711  *                                    array of height and width dimensions. Default 'thumbnail'.
     710 * @param string|array $size          Optional. Image size. Accepts any valid image size, or an array of width
     711 *                                    and height values in pixels (in that order). Default 'thumbnail'.
    712712 * @param bool         $icon          Optional. Whether the image should be treated as an icon. Default false.
    713713 * @return false|array Returns an array (url, width, height, is_intermediate), or false, if no image is available.
Note: See TracChangeset for help on using the changeset viewer.