WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#7528 closed defect (bug) (fixed)

Don't default to an unselectable image size

Reported by: 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 6 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 westi6 years ago

  • Milestone changed from 2.6.1 to 2.6.2

2.6.1 has been released, moving to 2.6.2 milestone

comment:2 ryan6 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

comment:3 ryan6 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:4 ryan6 years ago

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