WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 10 months ago

#40076 new enhancement

Add Filter option Attached

Reported by: subrataemfluence Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.3
Component: Media Keywords: has-patch reporter-feedback
Focuses: ui, administration Cc:
PR Number:

Description

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 3 years ago.
Additional option "Attached" to be included in the dropdown
40076.patch (698 bytes) - added by subrataemfluence 3 years ago.
new-attached-filter-in-action.png (243.2 KB) - added by subrataemfluence 3 years ago.
Filtered result using new Attached option added

Download all attachments as: .zip

Change History (9)

@subrataemfluence
3 years ago

Additional option "Attached" to be included in the dropdown

#1 @SergeyBiryukov
3 years ago

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

#2 @subrataemfluence
3 years ago

  • Keywords needs-patch added

#3 @subrataemfluence
3 years ago

  • Keywords has-patch added; needs-patch removed

@subrataemfluence
3 years ago

Filtered result using new Attached option added

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


10 months ago

#5 @antpb
10 months 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
10 months 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.

Note: See TracTickets for help on using tickets.