Changeset 39629 for branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 12/21/2016 05:18:24 AM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r39348 r39629 46 46 $query_args['post_mime_type'] = $request['mime_type']; 47 47 } 48 } 49 50 // Filter query clauses to include filenames. 51 if ( isset( $query_args['s'] ) ) { 52 add_filter( 'posts_clauses', '_filter_query_attachment_filenames' ); 48 53 } 49 54
Note: See TracChangeset
for help on using the changeset viewer.