Changeset 54534 for branches/6.0/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 10/17/2022 12:24:45 PM (3 years ago)
- Location:
- branches/6.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0
-
branches/6.0/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r52068 r54534 98 98 // Filter query clauses to include filenames. 99 99 if ( isset( $query_args['s'] ) ) { 100 add_filter( ' posts_clauses', '_filter_query_attachment_filenames' );100 add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' ); 101 101 } 102 102
Note: See TracChangeset
for help on using the changeset viewer.