[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:53:30 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:  closed
 Priority:  normal                           |   Milestone:  6.4
Component:  Media                            |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  good-first-bug has-patch commit  |     Focuses:  performance
---------------------------------------------+--------------------------
Changes (by johnbillion):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56452" 56452]:
 {{{
 #!CommitTicketReference repository="" revision="56452"
 Media: Add a filter to the `get_available_post_mime_types()` function to
 allow overriding its database query.

 This introduces the `get_available_post_mime_types` filter so this query
 can be skipped or cached by plugins.

 Props maciejmackowiak, archon810, rcorrales

 Fixes #52759
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52759#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list