[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
Thu Aug 24 16:08:49 UTC 2023
#52759: Add a filter to get_available_post_mime_types() function to allow
overriding extremely slow query.
--------------------------------------+------------------------------
Reporter: maciejmackowiak | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses: performance
--------------------------------------+------------------------------
Comment (by rcorrales):
Submitted a PR for adding a filter, similar to the one previously
submitted, but with docs added and changing the `$types` variable name to
`$mime_types` to avoid confusion with the `$type` variable, which is used
for the `post_type`:
https://github.com/WordPress/wordpress-develop/pull/5063
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52759#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list