Docs: Adjust documentation for the $size
parameter in the get_image_tag_class
hook doc to clarify the required order of width and height values when an array is passed.
See #34257. git-svn-id: https://develop.svn.wordpress.org/trunk@35037 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ac370db0cb
commit
3fc7fea5f8
@ -337,7 +337,8 @@ function get_image_tag( $id, $alt, $title, $align, $size = 'medium' ) {
|
||||
* @param string $class CSS class name or space-separated list of classes.
|
||||
* @param int $id Attachment ID.
|
||||
* @param string $align Part of the class name for aligning the image.
|
||||
* @param string $size Optional. Default is 'medium'.
|
||||
* @param string $size Size of image. Image size or array of width and height values (in that order).
|
||||
* Default 'medium'.
|
||||
*/
|
||||
$class = apply_filters( 'get_image_tag_class', $class, $id, $align, $size );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user