[wp-trac] [WordPress Trac] #55677: Improve Media REST API endpoint

WordPress Trac noreply at wordpress.org
Wed May 4 13:44:35 UTC 2022


#55677: Improve Media REST API endpoint
-------------------------+-----------------------------
 Reporter:  furi3r       |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  REST API     |    Version:
 Severity:  normal       |   Keywords:
  Focuses:  performance  |
-------------------------+-----------------------------
 Duplicated queries when querying media_types without files.
 await wp.apiFetch({ path: 'wp/v2/media?_envelope&media_type=text'});

 Duplicated queries when querying non-existing mime_types.
 await wp.apiFetch({ path: 'wp/v2/media?_envelope&mime_type=image/webp'});

 Probably related.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55677>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list