Make WordPress Core

Changeset 34470


Ignore:
Timestamp:
09/24/2015 03:13:08 AM (9 years ago)
Author:
wonderboymusic
Message:

Include fourth array parameter in return value doc block for wp_get_attachment_image_src().

Props kadamwhite.
Fixes #33905.

File:
1 edited

Legend:

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

    r34372 r34470  
    693693 * A mime icon for files, thumbnail or intermediate size for images.
    694694 *
     695 * The returned array contains four values: the URL of the attachment image src,
     696 * the width of the image file, the height of the image file, and a boolean
     697 * representing whether the returned array describes an intermediate (generated)
     698 * image size or the original, full-sized upload.
     699 *
    695700 * @since 2.5.0
    696701 *
     
    699704 *                                    array of height and width dimensions. Default 'thumbnail'.
    700705 * @param bool         $icon          Optional. Whether the image should be treated as an icon. Default false.
    701  * @return false|array Returns an array (url, width, height), or false, if no image is available.
     706 * @return false|array Returns an array (url, width, height, is_intermediate), or false, if no image is available.
    702707 */
    703708function wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon = false ) {
Note: See TracChangeset for help on using the changeset viewer.