WordPress.org

Make WordPress Core

Ticket #52183: 52183.diff

File 52183.diff, 925 bytes (added by GeekPress, 9 months ago)

Update @return description

  • src/wp-includes/post-thumbnail-template.php

    diff --git a/src/wp-includes/post-thumbnail-template.php b/src/wp-includes/post-thumbnail-template.php
    index 1605afa27b..b126da0576 100644
    a b function get_the_post_thumbnail( $post = null, $size = 'post-thumbnail', $attr = 
    217217 * @param int|WP_Post  $post Optional. Post ID or WP_Post object.  Default is global `$post`.
    218218 * @param string|int[] $size Optional. Registered image size to retrieve the source for or a flat
    219219 *                           array of height and width dimensions. Default 'post-thumbnail'.
    220  * @return string|false Post thumbnail URL or false if no URL is available.
     220 * @return string|false Post thumbnail URL or false if no image is available.
    221221 */
    222222function get_the_post_thumbnail_url( $post = null, $size = 'post-thumbnail' ) {
    223223        $post_thumbnail_id = get_post_thumbnail_id( $post );