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

WordPress Trac noreply at wordpress.org
Thu Dec 8 17:43:05 UTC 2016


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

 * keywords:  has-patch needs-testing needs-refresh has-unit-tests => has-
     patch needs-testing has-unit-tests


Comment:

 Refreshed the patch in
 [https://core.trac.wordpress.org/attachment/ticket/39092/39092.2.diff
 39092.2.diff]:
 * Removes the extra `_wp_attachment_image_alt` meta clause
 * Moves the filter application to `class-wp-rest-attachments-
 controller.php` so it only applies to media searches
 * Incorporates the test case from
 [https://core.trac.wordpress.org/attachment/ticket/39092/39092-test.diff
 39092-test.diff]. Thanks very much, @tyxla!

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


More information about the wp-trac mailing list