From e918b665382d0c81fa317647cf24a2c9cd5eafd2 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 16:47:22 +0000 Subject: [PATCH] Docs: Adjust documentation for the `$size` parameter in the `post_thumbnail_size` 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@35069 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post-thumbnail-template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/post-thumbnail-template.php b/src/wp-includes/post-thumbnail-template.php index bfaec74d8a..3ba7450814 100644 --- a/src/wp-includes/post-thumbnail-template.php +++ b/src/wp-includes/post-thumbnail-template.php @@ -123,7 +123,8 @@ function get_the_post_thumbnail( $post = null, $size = 'post-thumbnail', $attr = * * @since 2.9.0 * - * @param string $size The post thumbnail size. + * @param string $size The post thumbnail size. Image size or array of width and height + * values (in that order). Default 'post-thumbnail'. */ $size = apply_filters( 'post_thumbnail_size', $size );