[wp-trac] [WordPress Trac] #38195: Adding more mime_types filter to Media Library
WordPress Trac
noreply at wordpress.org
Tue Jul 2 00:19:45 UTC 2019
#38195: Adding more mime_types filter to Media Library
-------------------------------------------------+-------------------------
Reporter: zodiac1978 | Owner:
| SergeyBiryukov
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.3
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch ui-feedback commit has- | Focuses:
screenshots |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* keywords: has-patch ui-feedback commit needs-screenshots => has-patch
ui-feedback commit has-screenshots
Comment:
Replying to [comment:15 zodiac1978]:
> Yes, I thinks this is good idea. My only suggestion for another group
would be Archives and maybe Spreadsheets (if not put to into Documents).
Maybe as a next step.
Thanks for the feedback! [attachment:"38195.4.diff"] adds Documents,
Spreadsheets, and Archives groups, and also makes the code easier to add
other groups in the future. It should be as easy as adding a new array
entry to `wp_get_ext_types()`, where the key is a group as returned by
`wp_get_ext_types()`, and the value is an array of labels.
For reference, the only non-supported groups for now would be
`interactive`, `text`, `code`.
Replying to [comment:17 mukesh27]:
> Feedback from the design team: If you need design feedback then please
share the latest screenshot so we can check it
Thanks! There are no UI changes per se, the only thing the patch does is
add a few more types to filter media files by: Documents, Spreadsheets,
Archives. As noted in comment:10, these new entries only show up if you
have any files of those types already uploaded, and should not show up
otherwise (once #43658 is fixed for the Grid View).
See [attachment:"38195.4.png"], which displays a Documents entry, because
I have on PDF file in Media Library.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38195#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list