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.


git-svn-id: https://develop.svn.wordpress.org/trunk@35034 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2015-10-12 15:17:21 +00:00
parent bdfb256110
commit 259077deb5

View File

@ -147,8 +147,9 @@ function image_hwstring( $width, $height ) {
* @since 2.5.0 * @since 2.5.0
* *
* @param int $id Attachment ID for image. * @param int $id Attachment ID for image.
* @param array|string $size Optional. Image size to scale to. Accepts a registered image size * @param array|string $size Optional. Image size to scale to. Accepts any valid image size,
* or flat array of height and width values. Default 'medium'. * or an array of width and height values in pixels (in that order).
* Default 'medium'.
* @return false|array Array containing the image URL, width, height, and boolean for whether * @return false|array Array containing the image URL, width, height, and boolean for whether
* the image is an intermediate size. False on failure. * the image is an intermediate size. False on failure.
*/ */