From d165b25920cbc85817b187cf890abeb27b8eca64 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 24 Sep 2015 03:14:24 +0000 Subject: [PATCH] Include fourth array parameter in return value doc block for `wp_get_attachment_image_src()`. Props kadamwhite. Fixes #33905. Built from https://develop.svn.wordpress.org/trunk@34470 git-svn-id: http://core.svn.wordpress.org/trunk@34434 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 7 ++++++- wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index 2507ce10d8..0cd4681b28 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -692,13 +692,18 @@ function get_intermediate_image_sizes() { * * A mime icon for files, thumbnail or intermediate size for images. * + * The returned array contains four values: the URL of the attachment image src, + * the width of the image file, the height of the image file, and a boolean + * representing whether the returned array describes an intermediate (generated) + * image size or the original, full-sized upload. + * * @since 2.5.0 * * @param int $attachment_id Image attachment ID. * @param string|array $size Optional. Registered image size to retrieve the source for or a flat * array of height and width dimensions. Default 'thumbnail'. * @param bool $icon Optional. Whether the image should be treated as an icon. Default false. - * @return false|array Returns an array (url, width, height), or false, if no image is available. + * @return false|array Returns an array (url, width, height, is_intermediate), or false, if no image is available. */ function wp_get_attachment_image_src( $attachment_id, $size = 'thumbnail', $icon = false ) { // get a thumbnail or intermediate image if there is one diff --git a/wp-includes/version.php b/wp-includes/version.php index e8549f52d8..a88a564b1e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34469'; +$wp_version = '4.4-alpha-34470'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.