[wp-trac] [WordPress Trac] #39092: REST API: Add support for filename search in media endpoint

WordPress Trac noreply at wordpress.org
Wed Dec 21 05:18:25 UTC 2016


#39092: REST API: Add support for filename search in media endpoint
-------------------------------------------------+-------------------------
 Reporter:  jblz                                 |       Owner:  jnylen0
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  4.7.1
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit      |     Focuses:  rest-api
  fixed-major                                    |
-------------------------------------------------+-------------------------
Changes (by pento):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39629"]:
 {{{
 #!CommitTicketReference repository="" revision="39629"
 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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39092#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list