From 3fc7fea5f80230b6a170ece762fa3159caaa0377 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 15:25:41 +0000 Subject: [PATCH] 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 --- src/wp-includes/media.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 75bde9a2c9..34fbeb7bda 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -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 );