Docs: The $size
parameter for the get_image_tag
hook also accepts an array.
See #34257. See [35038]. git-svn-id: https://develop.svn.wordpress.org/trunk@35078 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
03481541aa
commit
6ca6c6fc1c
@ -349,13 +349,13 @@ function get_image_tag( $id, $alt, $title, $align, $size = 'medium' ) {
|
|||||||
*
|
*
|
||||||
* @since 2.6.0
|
* @since 2.6.0
|
||||||
*
|
*
|
||||||
* @param string $html HTML content for the image.
|
* @param string $html HTML content for the image.
|
||||||
* @param int $id Attachment ID.
|
* @param int $id Attachment ID.
|
||||||
* @param string $alt Alternate text.
|
* @param string $alt Alternate text.
|
||||||
* @param string $title Attachment title.
|
* @param string $title Attachment title.
|
||||||
* @param string $align Part of the class name for aligning the image.
|
* @param string $align Part of the class name for aligning the image.
|
||||||
* @param string $size Size of image. Image size or array of width and height values (in that order).
|
* @param string|array $size Size of image. Image size or array of width and height values (in that order).
|
||||||
* Default 'medium'.
|
* Default 'medium'.
|
||||||
*/
|
*/
|
||||||
return apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size );
|
return apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user