Make WordPress Core


Ignore:
Timestamp:
02/08/2021 02:12:21 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Clarify the @return value for wp_get_attachment_image_url() and get_the_post_thumbnail_url().

Props GeekPress, audrasjb, naveen17797.
Fixes #52183.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r50170 r50236  
    11251125 *                                    width and height values in pixels (in that order). Default 'thumbnail'.
    11261126 * @param bool         $icon          Optional. Whether the image should be treated as an icon. Default false.
    1127  * @return string|false Attachment URL or false if no image is available.
     1127 * @return string|false Attachment URL or false if no image is available. If `$size` does not match
     1128 *                      any registered image size, the original image URL will be returned.
    11281129 */
    11291130function wp_get_attachment_image_url( $attachment_id, $size = 'thumbnail', $icon = false ) {
Note: See TracChangeset for help on using the changeset viewer.