Make WordPress Core

Changeset 49016


Ignore:
Timestamp:
09/20/2020 01:38:04 PM (4 years ago)
Author:
johnbillion
Message:

Media: Correct some types in docblocks for filters related to thumbnails.

Props dilipbheda

See #47364, #50768

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-thumbnail-template.php

    r48310 r49016  
    3434     * @param bool             $has_thumbnail true if the post has a post thumbnail, otherwise false.
    3535     * @param int|WP_Post|null $post          Post ID or WP_Post object. Default is global `$post`.
    36      * @param int|string       $thumbnail_id  Post thumbnail ID or empty string.
     36     * @param int|false        $thumbnail_id  Post thumbnail ID or false if the post does not exist.
    3737     */
    3838    return (bool) apply_filters( 'has_post_thumbnail', $has_thumbnail, $post, $thumbnail_id );
     
    169169         *
    170170         * @param int          $post_id           The post ID.
    171          * @param string       $post_thumbnail_id The post thumbnail ID.
     171         * @param int          $post_thumbnail_id The post thumbnail ID.
    172172         * @param string|array $size              The post thumbnail size. Image size or array of width
    173173         *                                        and height values (in that order). Default 'post-thumbnail'.
     
    187187         *
    188188         * @param int          $post_id           The post ID.
    189          * @param string       $post_thumbnail_id The post thumbnail ID.
     189         * @param int          $post_thumbnail_id The post thumbnail ID.
    190190         * @param string|array $size              The post thumbnail size. Image size or array of width
    191191         *                                        and height values (in that order). Default 'post-thumbnail'.
     
    204204     * @param string       $html              The post thumbnail HTML.
    205205     * @param int          $post_id           The post ID.
    206      * @param string       $post_thumbnail_id The post thumbnail ID.
     206     * @param int          $post_thumbnail_id The post thumbnail ID.
    207207     * @param string|array $size              The post thumbnail size. Image size or array of width and height
    208208     *                                        values (in that order). Default 'post-thumbnail'.
Note: See TracChangeset for help on using the changeset viewer.