Make WordPress Core

Opened 6 months ago

Last modified 3 months ago

#63871 new defect (bug)

Media library does not respect the filter's already selected when coming back to the media library page

Reported by: hbhalodia's profile hbhalodia Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: administration Cc:

Description

## Issue

  1. Open media library in grid mode.
  2. Select any date or type filter, for example, Video and June 2025, it would show the media with the selected filter.
  3. Open any media, it will show modal box for that media and click edit more details.
  4. Now go back to previous URL, it will show you modal box for selected media and close that media modal box.
  5. Checkout the filter, the filter are selected which you have set earlier, but it would not respect the filter, it will show all the media despite UI say's filter selected as Video and June 2025.
  6. Please checkout the screencast for more reference - https://github.com/user-attachments/assets/dc29cb67-d03c-467f-b081-1089db5cc5ca

WP version: Latest Trunk
PHP: 8.2.23
No 3rd party plugins or theme activated.

Attachments (1)

Screen Recording 2025-08-25 at 12.mp4 (2.2 MB) - added by hbhalodia 6 months ago.
Screencast to reproduce the issue.

Change History (2)

@hbhalodia
6 months ago

Screencast to reproduce the issue.

#1 @wildworks
3 months ago

  • Version trunk deleted

I'm reviewing this ticket in preparation for our 6.9 dry run.

This issue was reproducible in 6.8.3, so it's not a new issue introduced in an unreleased development version.

Note: See TracTickets for help on using tickets.