Docs: Add a more complete return description for the array of data (or false) returned by image_downsize().

If not short-circuited via the `image_downsize` boolean filter, `image_downsize()` returns an array of data including the image URL, width, height, and whether the image size is intermediate, in that order. Otherwise, it returns false.

Fixes #30636.

Built from https://develop.svn.wordpress.org/trunk@34362


git-svn-id: http://core.svn.wordpress.org/trunk@34326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-09-21 10:22:26 +00:00
parent e6764f3b19
commit bbae198372
2 changed files with 3 additions and 2 deletions

View File

@ -148,7 +148,8 @@ function image_hwstring( $width, $height ) {
* @param int $id Attachment ID for image.
* @param array|string $size Optional. Image size to scale to. Accepts a registered image size
* or flat array of height and width values. Default 'medium'.
* @return false|array False on failure, array on success.
* @return false|array Array containing the image URL, width, height, and boolean for whether
* the image is an intermediate size. False on failure.
*/
function image_downsize( $id, $size = 'medium' ) {

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34361';
$wp_version = '4.4-alpha-34362';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.