Make WordPress Core


Ignore:
Timestamp:
10/17/2022 11:17:38 AM (20 months ago)
Author:
audrasjb
Message:

Media: Refactor search by filename within the admin.

Props vortfu, xknown, peterwilsoncc, paulkevan.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r54244 r54524  
    13091309    // Filter query clauses to include filenames.
    13101310    if ( isset( $q['s'] ) ) {
    1311         add_filter( 'posts_clauses', '_filter_query_attachment_filenames' );
     1311        add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' );
    13121312    }
    13131313
Note: See TracChangeset for help on using the changeset viewer.