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
This commit is contained in:
parent
ac9254faf8
commit
9a3fcf9fee
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user