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

WordPress Trac noreply at wordpress.org
Tue Dec 6 03:21:52 UTC 2016


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

Comment (by joemcgill):

 I think it would be nice if this wasn't limited by context. In [38625], we
 were being intentionally conservative—partially because targeting only
 search queries for attachments isn't as clean through regular search
 queries on the front end. Adding the filter inside the
 `WP_REST_Attachments_Controller` sounds like a good plan to me.

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


More information about the wp-trac mailing list