From noreply at wordpress.org Mon Sep 30 07:06:25 2019 From: noreply at wordpress.org (WordPress GSoC Trac) Date: Mon, 30 Sep 2019 07:06:25 -0000 Subject: [wp-gsoc] [WordPress GSoC Trac] #386: No route found when using taxonomies with hyphens Message-ID: <052.5cf475843ce12368dc41e000a6a55dac@wordpress.org> #386: No route found when using taxonomies with hyphens ---------------------------+-------------------- Reporter: mijnhost | Owner: rmccue Type: defect | Status: new Priority: normal | Milestone: Component: JSON REST API | Keywords: ---------------------------+-------------------- See ticket #384. Is this solved? When using taxonomies with hyphens like "my-taxonomy", you get routing errors for URLs like ` /wp-json/taxonomies/my-taxonomy/` I think the problem comes when registering the regular expression for the route at WP_JSON_Taxonomies->register_routes, one example: `/posts/types/(?P\w+)/taxonomies/(?P\w+)` doesn't cover taxonomies with hyphens. However this regex does work: `/posts/types/(?P\w+)/taxonomies/(?P[\w|\-]+)` Just to make it known. Thanks for the great job with this nice API. Regards, mijn.host Server Administrator https://mijn.host -- Ticket URL: WordPress GSoC Trac WordPress Google Summer of Code Trac