From e22107ce4e18c3166af9962f79e5860c55106937 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 20 Sep 2020 13:40:04 +0000 Subject: [PATCH] Media: Correct some types in docblocks for filters related to thumbnails. Props dilipbheda See #47364, #50768 Built from https://develop.svn.wordpress.org/trunk@49016 git-svn-id: http://core.svn.wordpress.org/trunk@48778 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-thumbnail-template.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/post-thumbnail-template.php b/wp-includes/post-thumbnail-template.php index 9cff36a9fc..ed544b1662 100644 --- a/wp-includes/post-thumbnail-template.php +++ b/wp-includes/post-thumbnail-template.php @@ -33,7 +33,7 @@ function has_post_thumbnail( $post = null ) { * * @param bool $has_thumbnail true if the post has a post thumbnail, otherwise false. * @param int|WP_Post|null $post Post ID or WP_Post object. Default is global `$post`. - * @param int|string $thumbnail_id Post thumbnail ID or empty string. + * @param int|false $thumbnail_id Post thumbnail ID or false if the post does not exist. */ return (bool) apply_filters( 'has_post_thumbnail', $has_thumbnail, $post, $thumbnail_id ); } @@ -168,7 +168,7 @@ 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 int $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'. */ @@ -186,7 +186,7 @@ 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 int $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'. */ @@ -203,7 +203,7 @@ function get_the_post_thumbnail( $post = null, $size = 'post-thumbnail', $attr = * * @param string $html The post thumbnail HTML. * @param int $post_id The post ID. - * @param string $post_thumbnail_id The post thumbnail ID. + * @param int $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'. * @param string $attr Query string of attributes. diff --git a/wp-includes/version.php b/wp-includes/version.php index 242a4cb00e..30025c7f20 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-49015'; +$wp_version = '5.6-alpha-49016'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.