WordPress/wp-includes/rest-api/endpoints
Gary Pendergast bba21b983c REST API: Add support for filename search in media endpoint.
In [38625], the functionality to search for attachments by filename was added via the `posts_clauses` filter and the `_filter_query_attachment_filenames()` function. This moves `_filter_query_attachment_filenames()` from `wp-admin/includes/post.php` to `wp-includes/post.php` so that it can be applied in the same manner in the REST API media endpoint.

Merge of [39598] to the 4.7 branch.

Props jblz, tyxla.
Fixes #39092.


Built from https://develop.svn.wordpress.org/branches/4.7@39629


git-svn-id: http://core.svn.wordpress.org/branches/4.7@39569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-21 05:19:34 +00:00
..
class-wp-rest-attachments-controller.php REST API: Add support for filename search in media endpoint. 2016-12-21 05:19:34 +00:00
class-wp-rest-comments-controller.php REST API: Allow sending an empty or no-op comment update. 2016-12-21 05:13:36 +00:00
class-wp-rest-controller.php REST API: Remove rest_get_post filter and `get_post` abstraction. 2016-11-08 13:09:33 +00:00
class-wp-rest-post-statuses-controller.php REST API: Update “resource” strings to use the appropriate nouns. 2016-11-23 02:42:30 +00:00
class-wp-rest-post-types-controller.php REST API: Update “resource” strings to use the appropriate nouns. 2016-11-23 02:42:30 +00:00
class-wp-rest-posts-controller.php REST API: Do not include the `password` argument when getting media items 2016-12-16 05:46:35 +00:00
class-wp-rest-revisions-controller.php REST API: Merge similar date strings in the revisions and comments controllers. 2016-12-04 20:27:35 +00:00
class-wp-rest-settings-controller.php REST API: Switch to stable version of JSON Schema. 2016-11-03 02:22:29 +00:00
class-wp-rest-taxonomies-controller.php REST API: Update “resource” strings to use the appropriate nouns. 2016-11-23 02:42:30 +00:00
class-wp-rest-terms-controller.php REST API: Capability check for editing a single term should use the singular form. 2016-12-03 05:09:32 +00:00
class-wp-rest-users-controller.php REST API: Disable `DELETE` requests for users in multisite. 2016-12-02 22:16:33 +00:00