Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#52650 closed defect (bug) (duplicate)

Media dialog throws away models in query cache and I get a blank media view

Reported by: devowl's profile devowl Owned by:
Milestone: Priority: normal
Severity: major Version: 5.6.2
Component: Media Keywords:
Focuses: ui, javascript Cc:


Reprocedure as follows:

  1. Upload 3 images your media library
  2. Create a post and click "Set featured image"
  3. 3 files are visible
  4. Filter by "Date", e.g. select this month
  5. 3 files are visible
  6. Change filter back to "All dates"
  7. Close media dialog
  8. Click on "Set featured image" again (do not reload the page**)
  9. Filter by "Date" again and select the previously selected month
  10. You will not get any images in the view

Reprocedure video:


  • This issue is not related to Gutenberg because all media dialogs are affected
  • It also is not only related to the "Date" filter, the same issue can be reprocedured with all filters (e.g. "Unattached")
  • It is not related to any plugin because I have deactivated all plugins and themes (using default theme)
  • Not reprocedurable in WordPress 5.5 (tested on another customer installation)

I could identify that the following line shows a query cache without models length=0 and hasMore=false.

Change History (2)

#1 @Mista-Flo
3 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #50025.

Hi @devowl, you had a nice catch indeed.

It was an issue raised 10 months ago, and fixed a few weeks ago, it will be available in the next 5.7 which will be probably available next month.

#2 @SergeyBiryukov
3 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.