Docs: Adjust documentation for the `$size` parameter in the `wp_get_attachment_link` hook doc to clarify the required order of width and height values when an array is passed.
Also adds the `array` type to the parameter documentation (already supported). See #34257. git-svn-id: https://develop.svn.wordpress.org/trunk@35065 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6e4fdc4cbf
commit
e73fbb948c
|
@ -1439,7 +1439,8 @@ function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = fals
|
|||
*
|
||||
* @param string $link_html The page link HTML output.
|
||||
* @param int $id Post ID.
|
||||
* @param string $size Image size. Default 'thumbnail'.
|
||||
* @param string|array $size Size of the image. Image size or array of width and height values (in that order).
|
||||
* Default 'thumbnail'.
|
||||
* @param bool $permalink Whether to add permalink to image. Default false.
|
||||
* @param bool $icon Whether to include an icon. Default false.
|
||||
* @param string|bool $text If string, will be link text. Default false.
|
||||
|
|
Loading…
Reference in New Issue