[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 Sep 19 17:03:39 UTC 2023
#52759: Add a filter to get_available_post_mime_types() function to allow
overriding extremely slow query.
------------------------------+--------------------------
Reporter: maciejmackowiak | Owner: joemcgill
Type: feature request | Status: closed
Priority: normal | Milestone: 6.4
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: performance
------------------------------+--------------------------
Changes (by joemcgill):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"56623" 56623]:
{{{
#!CommitTicketReference repository="" revision="56623"
Media: Edit new hook name in `get_available_post_mime_types()`.
This is a follow-up to [56452] in which a new filter hook was added to
`get_available_post_mime_types()` to override a potentially slow query.
This renames the previous hook from `get_available_post_mime_types` to
`pre_get_available_post_mime_types` for clarity.
Props rcorrales, emrikol, johnbillion, joemcgill, mukesh27.
Fixes #52759.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52759#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list