From cc1bcb6addb88c30fa0a456ada8d539913e36103 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 15:28:45 +0000 Subject: [PATCH] Docs: Adjust documentation for the `$size` parameter in `image_get_intermediate_size()` 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@35039 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 c5c0949215..71505aee0f 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -604,8 +604,9 @@ function image_make_intermediate_size( $file, $width, $height, $crop = false ) { * @since 2.5.0 * * @param int $post_id Attachment ID. - * @param array|string $size Optional. Registered image size to retrieve or flat array of height - * and width dimensions. Default 'thumbnail'. + * @param array|string $size Optional. Image size. Accepts any valid image size, or an array + * of width and height values in pixels (in that order). + * Default 'thumbnail'. * @return false|array False on failure or array of file path, width, and height on success. */ function image_get_intermediate_size( $post_id, $size = 'thumbnail' ) {