[wp-trac] [WordPress Trac] #38922: Use REST API for ajax tag search
WordPress Trac
noreply at wordpress.org
Wed Nov 23 23:44:24 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 nacin):
[attachment:38922.diff] follows the same pattern as #38920 which uses a
localized rest_url which isn't really ideal. Is it worth having a helper a
la ajaxurl? wp-api.js doesn't seem to expose a nice method for this.
wp.api.url('wp/v2/tags') would be nice, perhaps. Or obviously I could use
wp-api.js, but wanted to try this approach as a targeted diff.
Obviously we wouldn't actually remove the old action, and instead
deprecate it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38922#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list