From 9a3fcf9fee29d0d9d254e5e2e2053f83339733cf Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 15:55:12 +0000 Subject: [PATCH] Docs: Adjust documentation for the `$size` parameter in `wp_get_attachment_link()` to clarify the required order of width and height values when passing an array. Also adds the `array` type to the parameter documentation (already supported). Props jaspermdegroot. See #34257. git-svn-id: https://develop.svn.wordpress.org/trunk@35050 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post-template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 3b491a1ace..e4a52ebcb9 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -1402,7 +1402,9 @@ function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $ * @since 4.4.0 The `$id` parameter can now accept either a post ID or `WP_Post` object. * * @param int|WP_Post $id Optional. Post ID or post object. - * @param string $size Optional, default is 'thumbnail'. Size of image, either array or string. + * @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 $permalink Optional, default is false. Whether to add permalink to image. * @param bool $icon Optional, default is false. Whether to include icon. * @param string|bool $text Optional, default is false. If string, then will be link text.