Make WordPress Core


Ignore:
Timestamp:
10/17/2022 12:24:45 PM (3 years ago)
Author:
audrasjb
Message:

Media: Refactor search by filename within the admin.

Props vortfu, xknown, peterwilsoncc, paulkevan.
Merges [54524] to the 6.0 branch.

Location:
branches/6.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0

  • branches/6.0/src/wp-admin/includes/post.php

    r53299 r54534  
    13031303    // Filter query clauses to include filenames.
    13041304    if ( isset( $q['s'] ) ) {
    1305         add_filter( 'posts_clauses', '_filter_query_attachment_filenames' );
     1305        add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' );
    13061306    }
    13071307
Note: See TracChangeset for help on using the changeset viewer.