Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#7528 closed defect (bug) (fixed)

Don't default to an unselectable image size

Reported by: tellyworth's profile tellyworth Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: Cc:

Description

#7520 [8653] lets you specify a default image size. If you set a default of 'medium', and find an image in the media library tab that doesn't have an intermediate of that size (a very small image for example), the 'medium' choice will be selected even though it is disabled. Same for 'large'.

The enclosed patch makes it skip the disabled sizes and choose the next largest available one (usually 'full', which is always available).

Attachments (1)

image-size-unavailable-r8655.patch (665 bytes) - added by tellyworth 16 years ago.

Download all attachments as: .zip

Change History (5)

#1 @westi
16 years ago

  • Milestone changed from 2.6.1 to 2.6.2

2.6.1 has been released, moving to 2.6.2 milestone

#2 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [8670]) Don't default to an unselectable image size. Props tellyworth. fixes #7528 for trunk

#3 @ryan
16 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

#4 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.