From 4781b9d5d34a9065ce0b5a52cadedf49d979035f Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 15:35:17 +0000 Subject: [PATCH] Docs: Adjust documentation for the `$size` parameter in `wp_get_attachment_image()` 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@35042 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 7c9312e49d..9a502b98b2 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -755,8 +755,8 @@ function wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon * @since 2.5.0 * * @param int $attachment_id Image attachment ID. - * @param string|array $size Optional. Registered image size or flat array of height and width - * dimensions. Default 'thumbnail'. + * @param string|array $size Optional. Image size. Accepts any valid image size, or an array of width + * and height values in pixels (in that order). Default 'thumbnail'. * @param bool $icon Optional. Whether the image should be treated as an icon. Default false. * @param string|array $attr Optional. Attributes for the image markup. Default empty. * @return string HTML img element or empty string on failure.