[wp-trac] [WordPress Trac] #52759: Add a filter to get_available_post_mime_types() function to allow overriding extremely slow query.
WordPress Trac
noreply at wordpress.org
Tue Aug 29 15:07:58 UTC 2023
#52759: Add a filter to get_available_post_mime_types() function to allow
overriding extremely slow query.
-----------------------------+--------------------------
Reporter: maciejmackowiak | Owner: johnbillion
Type: feature request | Status: reopened
Priority: normal | Milestone: 6.4
Component: Media | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses: performance
-----------------------------+--------------------------
Comment (by joemcgill):
I agree that a pre_ filter name would be better here, since we're not
filtering the return value from the DB, good suggestion @emrikol.
@oglekler there isn't a specific performance impact to adding the filter
here, but it does create an opportunity for sites to potentially avoid an
expensive DB query, which is why it makes sense as a performance
enhancement.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52759#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list