[wp-trac] [WordPress Trac] #63668: Media / REST API: Support specifying multiple media types or mime types when listing media
WordPress Trac
noreply at wordpress.org
Mon Jul 7 09:32:19 UTC 2025
#63668: Media / REST API: Support specifying multiple media types or mime types
when listing media
----------------------------------------+------------------------------
Reporter: talldanwp | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses: rest-api
----------------------------------------+------------------------------
Changes (by talldanwp):
* keywords: => has-patch needs-unit-tests
Comment:
Thanks for the speedy patch @abcd95! I'm at the end of my day, so haven't
had a chance to test it, but the first thing that comes to mind is that
it'd be great to add unit tests. I think that will be needed anyway for
the patch to be accepted.
It's interesting (and clever) the way the patch allows both the media_type
and mime_type options to be used together or interchangeably. That part
might need some extra documentation too.
If you want to wait for further feedback on the approach before making
further changes (from REST or Media maintainers), that's fine too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63668#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list