From 479532865dd773dcaaec12a837f9c3693b3f18c2 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 15:33:48 +0000 Subject: [PATCH] Docs: Adjust documentation for the `$size` parameter in the `wp_get_attachment_image_src` 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@35041 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 7e7afc029a..7c9312e49d 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -737,8 +737,8 @@ function wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon * * @param array|false $image Either array with src, width & height, icon src, or false. * @param int $attachment_id Image attachment ID. - * @param string|array $size Registered image size to retrieve the source for or a flat - * array of height and width dimensions. Default 'thumbnail'. + * @param string|array $size Size of image. Image size or array of width and height values + * (in that order). Default 'thumbnail'. * @param bool $icon Whether the image should be treated as an icon. Default false. */ return apply_filters( 'wp_get_attachment_image_src', $image, $attachment_id, $size, $icon );