WordPress.org

Make WordPress Core

Opened 6 weeks ago

#48026 new defect (bug)

Always show selected image even if it doesn't match search string

Reported by: galbaras Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:
PR Number:

Description

When embedding an image in a post, if there is a pattern in the search box and an image is uploaded that doesn't match it, the new image details are not shown until the search pattern is cleared.

Steps:

  1. Click "Add Media"
  1. Enter search pattern, e.g. "abc"
  1. Switch to "Upload Files" tab and upload a file, e.g. "xyz"
  1. Once the file is uploaded, you see the "Media Library" tab again, but no details are showing in the "Attachment Details" area, although the newly-uploaded file is selected
  1. Clear the search pattern
  1. Selected image details appear

The correct behavior is to always show the details of the selected file, even if it doesn't match the search pattern, at least immediately after it's been uploaded.

Change History (0)

Note: See TracTickets for help on using tickets.