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/ajax-actions.php

    r54319 r54524  
    30243024    // Filter query clauses to include filenames.
    30253025    if ( isset( $query['s'] ) ) {
    3026         add_filter( 'posts_clauses', '_filter_query_attachment_filenames' );
     3026        add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' );
    30273027    }
    30283028
Note: See TracChangeset for help on using the changeset viewer.