Make WordPress Core

Opened 12 years ago

Closed 11 years ago

#22494 closed defect (bug) (fixed)

Issues when selecting a new featured image on posts with an existing, older featured image

Reported by: bradyvercher's profile bradyvercher Owned by: koopersmith's profile koopersmith
Milestone: 3.5 Priority: low
Severity: minor Version: 3.5
Component: Media Keywords: has-patch needs-testing
Focuses: Cc:


On posts with a featured image that isn't one of the most recent attachments, when clicking the button to choose a new featured image, the existing featured image doesn't appear in the list of attachments, which can be a little confusing and inconsistent.

It seems like there should be a way to prime the initial attachment collection with an arbitrary attachment when the media popup is loaded.

In this same scenario, the "Attachment Details" sidebar is also a little wonky. There's only a single field to enter a title and nothing else.

And just to slip a feature request in, it'd be nice to be able to double click an attachment to select it and close the popup in situations where a single attachment is needed (like selecting a featured image).

Attachments (1)

22494.diff (1.3 KB) - added by koopersmith 11 years ago.

Download all attachments as: .zip

Change History (8)

#2 @koopersmith
12 years ago

  • Milestone changed from Awaiting Review to 3.5

#3 @koopersmith
12 years ago

In 22667:

Media: Properly display selected featured image data if the featured image is not in the first section of the library. see #22494, #21390.

#4 @nacin
12 years ago

  • Owner set to koopersmith
  • Status changed from new to assigned

#5 @koopersmith
11 years ago

  • Priority changed from normal to low
  • Severity changed from normal to minor

The bug is fixed. All that's left here is a minor enhancement (adding the selected attachment to the library).

#6 @koopersmith
11 years ago

  • Keywords has-patch needs-testing added

Patch adds the selected attachment to the beginning of the media library if it doesn't exist within the attachments the library has loaded so far. We may also want to scroll to the selected attachment (if it does exist) when the dialog is opened, but that is, yet again, more gravy.

11 years ago

#7 @ryan
11 years ago

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

In 22993:

When settting a featured image, move the currently selected image to the beginning of the library if it doesn't exist within the attachments loaded so far.

Props koopersmith
fixes #22494

Note: See TracTickets for help on using tickets.