Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #39358


Ignore:
Timestamp:
12/21/2016 08:15:36 AM (8 years ago)
Author:
dd32
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39358 – Description

    initial v2  
    22
    33We see that in Wordpress 4.7, someone added a new filter to this function:
    4 
     4{{{
    55        // Filter query clauses to include filenames.
    66        if ( isset( $query['s'] ) ) {
    77                add_filter( 'posts_clauses', '_filter_query_attachment_filenames' );
    88        }
    9        
     9}}}
    1010This filter is a performance killer and takes forever to output a result in large databases. We have tested this with db that has over 500000 posts.