Make WordPress Core


Ignore:
Timestamp:
10/17/2022 12:24:45 PM (4 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-includes/deprecated.php

    r53287 r54534  
    43124312        _deprecated_function( __FUNCTION__, '6.0.0' );
    43134313}
     4314
     4315/**
     4316 * Filter the SQL clauses of an attachment query to include filenames.
     4317 *
     4318 * @since 4.7.0
     4319 * @deprecated 6.0.3
     4320 * @access private
     4321 *
     4322 * @param array $clauses An array including WHERE, GROUP BY, JOIN, ORDER BY,
     4323 *                       DISTINCT, fields (SELECT), and LIMITS clauses.
     4324 * @return array The unmodified clauses.
     4325 */
     4326function _filter_query_attachment_filenames( $clauses ) {
     4327        _deprecated_function( __FUNCTION__, '4.9.9', 'add_filter( "wp_allow_query_attachment_by_filename", "__return_true" )' );
     4328        remove_filter( 'posts_clauses', __FUNCTION__ );
     4329        return $clauses;
     4330}
Note: See TracChangeset for help on using the changeset viewer.