Make WordPress Core

Opened 4 years ago

Last modified 8 weeks ago

#40076 new enhancement

Add Filter option Attached

Reported by: subrataemfluence Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.7.3
Component: Media Keywords: has-patch needs-refresh
Focuses: ui, administration Cc:


In Media Library there should be ad additional filter "Attached" like "Unattached". This should give the opportunity to filter out exactly what we need to display rather than looking through "Uploaded To" column for its status.

Attachments (3)

Screenshot from 2017-03-09 14:16:56.png (239.1 KB) - added by subrataemfluence 4 years ago.
Additional option "Attached" to be included in the dropdown
40076.patch (698 bytes) - added by subrataemfluence 4 years ago.
new-attached-filter-in-action.png (243.2 KB) - added by subrataemfluence 4 years ago.
Filtered result using new Attached option added

Download all attachments as: .zip

Change History (12)

4 years ago

Additional option "Attached" to be included in the dropdown

#1 @SergeyBiryukov
4 years ago

  • Component changed from General to Media
  • Focuses ui added; accessibility removed

#2 @subrataemfluence
4 years ago

  • Keywords needs-patch added

#3 @subrataemfluence
4 years ago

  • Keywords has-patch added; needs-patch removed

4 years ago

Filtered result using new Attached option added

This ticket was mentioned in Slack in #core-media by mike. View the logs.

3 years ago

#5 @antpb
3 years ago

  • Keywords reporter-feedback added

Hello @subrataemfluence ! Thanks so much for the work you did on this. We were recently reviewing this ticket in the #core-media weekly meeting as part of our triage of issues that are new without response.

We are trying to come to a conclusion on a use case for the attached filter and where this would be useful for users in the Media Library. Could you potentially illustrate when a user would need to use this feature?

Also, I'm noticing a 'trash' filter in the patch provided. Can you provide some context on that change as well? We might want to alter the description and title of this ticket to mention that being part of the patch.

Thanks again for helping WordPress!

#6 @subrataemfluence
2 years ago

@antpb Here is my observation in support of Attached filter.

It gives the ability to know which media files are actually "attached" to post(s). We already have "All" and "Unattached". There is so far no way to know which are attached. The objective is to filter out attached media files and list them just like Unattached. Say I have 200+ media files but out of those only 5 are attached to some posts. "Attached" filter will make it easier for users to know which 5 out of 200 are attached.

Regarding the Trash filter, I am a bit confused. Honestly, don't remember if I added it! It's almost two years I uploaded the patch for 4.7.3. The confusing part is if I hadn't added it how it came under the patch. I will have to look into 4.7.3 since I can see the trash code block is present in 5.0.2.

This ticket was mentioned in Slack in #core-media by antpb. View the logs.

8 weeks ago

#8 @antpb
8 weeks ago

  • Keywords needs-refresh added; reporter-feedback removed
  • Milestone changed from Awaiting Review to Future Release

Yeah that's a great use case! We reviewed this in a recent Media bug scrub and it was agreed by attendees that there is no reason we should not consider this filter in the future. :D Marking 5.8 so we can discuss in future meeting to figure out the best path forward. The current page will need a refresh.

Last edited 8 weeks ago by antpb (previous) (diff)

#9 @subrataemfluence
8 weeks ago

Thank you so much @antpb for considering my suggestion! :)

I possible, please let me know what refresh the patch requires so that I can make the changes and resubmit.


Note: See TracTickets for help on using tickets.