WordPress.org

Make WordPress Core

Opened 13 months ago

Closed 10 months ago

Last modified 10 months ago

#48468 closed defect (bug) (duplicate)

Media library grid view has no results with particular taxonomy slug

Reported by: mightyturtle Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.3
Component: Taxonomy Keywords: close reporter-feedback
Focuses: administration Cc:

Description

Hello,

This bug results in no media items being found in the media library admin under certain circumstances:

  1. Apply the "type" taxonomy to the attachment post type.
  2. Apply a type term to an attachment.
  3. Click on the taxonomy page for "type" in the media admin submenu.
  4. Click on the number next to the term, which links to a view of media library items.
  5. List mode reveals media items correctly.
  6. Select grid mode.
  7. Message displayed is "No media files found."
  8. Inspect the AJAX request that is supposed to retrieve media items for the view. The query is erroneously picking up the "type" taxonomy as "post_mime_type".

Change History (3)

#1 in reply to: ↑ description @SergeyBiryukov
13 months ago

  • Component changed from Administration to Taxonomy
  • Keywords close reporter-feedback added

Hi there, welcome to WordPress Trac! Thanks for the report.

Replying to mightyturtle:

Apply the "type" taxonomy to the attachment post type.

Note that type is one of the reserved terms in WordPress and should not be used as a taxonomy name. Does the issue still happen with a different taxonomy name?

#2 @SergeyBiryukov
10 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Closing, per comment:1.

Last edited 10 months ago by SergeyBiryukov (previous) (diff)

#3 @SergeyBiryukov
10 months ago

  • Resolution changed from wontfix to duplicate

Previously reported in #12917.

Note: See TracTickets for help on using tickets.