[wp-trac] [WordPress Trac] #38922: Use REST API for ajax tag search
WordPress Trac
noreply at wordpress.org
Sat Dec 10 09:48:03 UTC 2016
#38922: Use REST API for ajax tag search
--------------------------+------------------------------
Reporter: nacin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: rest-api
--------------------------+------------------------------
Comment (by swissspidy):
> I'm really not an expert about the REST API, just wondering what is the
advantage in using them ''in this specific case''.
Providing more data in the response will be very useful in the future when
you want to distinguish tags with the same name (#37975), do some sort of
autocompletion (#31696), exclude tags that have already been added
(#21258) or perhaps show the usage count of the terms in parentheses.
Regarding the patches, the `term_search_min_chars` hook shouldn't be
documented twice. See https://make.wordpress.org/core/handbook/best-
practices/inline-documentation-standards/php/#4-1-duplicate-hooks
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38922#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list