[wp-trac] [WordPress Trac] #39092: REST API: Add support for filename search in media endpoint
WordPress Trac
noreply at wordpress.org
Mon Dec 5 22:39:28 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 jnylen0):
There is some discussion on the ticket that introduced this feature for
the media library (#22774) about its intended purpose and scope. For
example (ticket:22744#comment:32):
> visitors likely don't know or care about file names anyway
I could argue this one either way. It's worth considering whether to
allow every API user (including unauthenticated) to search filenames.
However, we already expose the filenames in the response of `/media`, and
media search in the API should support the same features as the search in
the wp-admin media library.
@joemcgill @swissspidy since you worked on adding filename search to the
media library, what do you think about supporting this in the API also?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39092#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list