From 38141969f269829373f60d1edebbe5ee2c5839f8 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 12 Oct 2015 16:55:08 +0000 Subject: [PATCH] Docs: The `$size` parameters in the `begin_fetch_post_thumbnail_html` and `end_fetch_post_thumbnail_html` hooks can also accept an array (already supported). See #34257. See #32246. See [35070] and [35071]. git-svn-id: https://develop.svn.wordpress.org/trunk@35074 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post-thumbnail-template.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wp-includes/post-thumbnail-template.php b/src/wp-includes/post-thumbnail-template.php index ec2e64da28..5ebbd452ea 100644 --- a/src/wp-includes/post-thumbnail-template.php +++ b/src/wp-includes/post-thumbnail-template.php @@ -137,10 +137,10 @@ function get_the_post_thumbnail( $post = null, $size = 'post-thumbnail', $attr = * * @since 2.9.0 * - * @param int $post_id The post ID. - * @param string $post_thumbnail_id The post thumbnail ID. - * @param string $size The post thumbnail size. Image size or array of width - * and height values (in that order). Default 'post-thumbnail'. + * @param int $post_id The post ID. + * @param string $post_thumbnail_id The post thumbnail ID. + * @param string|array $size The post thumbnail size. Image size or array of width + * and height values (in that order). Default 'post-thumbnail'. */ do_action( 'begin_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size ); if ( in_the_loop() ) @@ -152,10 +152,10 @@ function get_the_post_thumbnail( $post = null, $size = 'post-thumbnail', $attr = * * @since 2.9.0 * - * @param int $post_id The post ID. - * @param string $post_thumbnail_id The post thumbnail ID. - * @param string $size The post thumbnail size. Image size or array of width - * and height values (in that order). Default 'post-thumbnail'. + * @param int $post_id The post ID. + * @param string $post_thumbnail_id The post thumbnail ID. + * @param string|array $size The post thumbnail size. Image size or array of width + * and height values (in that order). Default 'post-thumbnail'. */ do_action( 'end_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size );