WordPress.org

Make WordPress Core

#22494 closed defect (bug) (fixed)

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

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

Description

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 20 months ago.

Download all attachments as: .zip

Change History (8)

comment:2 koopersmith20 months ago

  • Milestone changed from Awaiting Review to 3.5

comment:3 koopersmith20 months 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.

comment:4 nacin20 months ago

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

comment:5 koopersmith20 months 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).

comment:6 koopersmith20 months 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.

koopersmith20 months ago

comment:7 ryan20 months 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.