[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
Thu Jul 10 08:30:52 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 changes-requested has-     |     Focuses:  rest-api
  unit-tests                                     |
-------------------------------------------------+-------------------------

Comment (by ankitkumarshah):

 == Test Report
 === Description
 This report validates that filtering media works as expected.

 Patch tested: https://github.com/WordPress/wordpress-develop/pull/9211

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.28
 - Server: nginx/1.27.4
 - Database: mysqli (Server: 8.0.41 / Client: mysqlnd 8.2.28)
 - Browser: Chrome 138.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-Five 1.2
 - MU Plugins:
   * Hello World 1.0
   * Test Plugin
 - Plugins:
   * Gutenberg 19.6.1
   * Test Reports 1.2.0

 === Actual Results
 1.  ✅ The API supports filtering media items using the `media_type` and
 `mime_type` query parameters, allowing multiple values separated by
 commas.

 === Supplemental Artifacts
 ==== Media:
 [[Image(https://i.postimg.cc/LmTbV266/image.png)]]
 ==== Video:
 Before:
 https://ppgtp1rtd3.ufs.sh/f/TnWMEUzoUd85aQF0qoImzZxcBId59uq2CDo3beNvrnYfPHSs
 After:
 https://ppgtp1rtd3.ufs.sh/f/TnWMEUzoUd85MmbhPHcQDdEGq0Xo6St7iP2avnAyuxYhNHFT

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63668#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list