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
This commit is contained in:
parent
e6fd778208
commit
e22107ce4e
|
@ -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 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|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 );
|
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
|
* @since 2.9.0
|
||||||
*
|
*
|
||||||
* @param int $post_id The post ID.
|
* @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
|
* @param string|array $size The post thumbnail size. Image size or array of width
|
||||||
* and height values (in that order). Default 'post-thumbnail'.
|
* 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
|
* @since 2.9.0
|
||||||
*
|
*
|
||||||
* @param int $post_id The post ID.
|
* @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
|
* @param string|array $size The post thumbnail size. Image size or array of width
|
||||||
* and height values (in that order). Default 'post-thumbnail'.
|
* 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 string $html The post thumbnail HTML.
|
||||||
* @param int $post_id The post ID.
|
* @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
|
* @param string|array $size The post thumbnail size. Image size or array of width and height
|
||||||
* values (in that order). Default 'post-thumbnail'.
|
* values (in that order). Default 'post-thumbnail'.
|
||||||
* @param string $attr Query string of attributes.
|
* @param string $attr Query string of attributes.
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue