[wp-trac] [WordPress Trac] #57361: WP_REST_Attachments_Controller::get_media_types not returning existing mime types, but the ones allowed for upload
WordPress Trac
noreply at wordpress.org
Tue Dec 20 16:18:55 UTC 2022
#57361: WP_REST_Attachments_Controller::get_media_types not returning existing mime
types, but the ones allowed for upload
-------------------------+------------------------------
Reporter: david.binda | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: | Focuses: rest-api
-------------------------+------------------------------
Comment (by TimothyBlynJacobs):
I philosophically would support this change. The issue, however, is that
`get_available_post_mime_types` is an uncached query. So we'd be adding an
uncached query to every REST API load. So we can't simply move over to
using the other function.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57361#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list