Make WordPress Core

Opened 12 years ago

Closed 11 years ago

#30636 closed defect (bug) (fixed)

image_downsize doesn't document the return value

Reported by: rmccue Owned by: rmccue
Priority: normal Milestone: 4.4
Component: Media Version:
Severity: minor Keywords: has-patch
Cc: Focuses: docs

Description

Neither the filter nor function for image_downsize document fully the return value. This means that in order to write your own downsizer, you need to look at how it works internally, which is a pain.

Attachments (1)

30636.diff​ (745 bytes ) - added by DrewAPicture 11 years ago.

Download all attachments as: .zip

Change History (5)

#1 @rmccue
12 years ago

  • Owner set to rmccue
  • Status new → assigned

#2 @wonderboymusic
11 years ago

  • Milestone Awaiting Review → Future Release

I look forward to this

#3 @DrewAPicture
11 years ago

  • Keywords has-patch added; needs-patch needs-docs removed
  • Milestone Future Release → 4.4

#4 @DrewAPicture
11 years ago

  • Resolution → fixed
  • Status assigned → closed

In 34362:

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.

Note: See TracTickets for help on using tickets.