From eae2d93f08cfcdb444104a8916ad757c695d1d81 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 15:19:13 +0000 Subject: [PATCH] Docs: Adjust documentation for the `$size` parameter in the `image_downside` hook doc to clarify the required order of width and height values when an array is passed. See #34257. git-svn-id: https://develop.svn.wordpress.org/trunk@35035 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index a437926ae0..686964d841 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -168,7 +168,8 @@ function image_downsize( $id, $size = 'medium' ) { * * @param bool $downsize Whether to short-circuit the image downsize. Default false. * @param int $id Attachment ID for image. - * @param array|string $size Size of image, either array or string. Default 'medium'. + * @param array|string $size Size of image. Image size or array of width and height values (in that order). + * Default 'medium'. */ if ( $out = apply_filters( 'image_downsize', false, $id, $size ) ) { return $out;