Make WordPress Core

Changeset 35034


Ignore:
Timestamp:
10/12/2015 03:17:21 PM (10 years ago)
Author:
DrewAPicture
Message:

Docs: Adjust documentation for the $size parameter in image_downsize() 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

    r35033 r35034  
    148148 *
    149149 * @param int          $id   Attachment ID for image.
    150  * @param array|string $size Optional. Image size to scale to. Accepts a registered image size
    151  *                           or flat array of height and width values. Default 'medium'.
     150 * @param array|string $size Optional. Image size to scale to. Accepts any valid image size,
     151 *                           or an array of width and height values in pixels (in that order).
     152 *                           Default 'medium'.
    152153 * @return false|array Array containing the image URL, width, height, and boolean for whether
    153154 *                     the image is an intermediate size. False on failure.
Note: See TracChangeset for help on using the changeset viewer.