From 259077deb589226199891ad0c6ca04b36ce7df11 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 15:17:21 +0000 Subject: [PATCH] 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 --- src/wp-includes/media.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 39bdd37b1e..a437926ae0 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -147,8 +147,9 @@ function image_hwstring( $width, $height ) { * @since 2.5.0 * * @param int $id Attachment ID for image. - * @param array|string $size Optional. Image size to scale to. Accepts a registered image size - * or flat array of height and width values. Default 'medium'. + * @param array|string $size Optional. Image size to scale to. Accepts any valid image size, + * 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 * the image is an intermediate size. False on failure. */