[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 11:48:56 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 dev-feedback                        |
-------------------------------------------------+-------------------------
Changes (by nikunj8866):

 * keywords:  has-patch changes-requested has-unit-tests => has-patch
     changes-requested has-unit-tests dev-feedback


Comment:

 Thanks @abcd95

 I've checked the URL `http://localhost:8889/wp-
 json/wp/v2/media?media_type=video,` and can confirm that it doesn’t break.
 It returns the expected results filtered by the video media type.

 So ideally, the behavior should be consistent in such cases as well.
 Whether we address this within the scope of this ticket or handle it
 separately is something worth considering.

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


More information about the wp-trac mailing list