[wp-trac] [WordPress Trac] #38439: Should we commit to `wp/v2/taxonomies/post_tag` or switch to `wp/v2/taxonomies/tag` ?

WordPress Trac noreply at wordpress.org
Mon Oct 31 22:28:26 UTC 2016


#38439: Should we commit to `wp/v2/taxonomies/post_tag` or switch to
`wp/v2/taxonomies/tag` ?
-----------------------------+------------------
 Reporter:  danielbachhuber  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  4.7
Component:  REST API         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  dev-feedback     |     Focuses:
-----------------------------+------------------

Comment (by jnylen0):

 Another option would be to use each taxonomy's `rest_base` here.

 - `post_tag` → `tags`
 - `category` → `categories`

 This is more consistent with the rest of the API in both removing the
 `post_` prefix and in pluralizing `tags` and `categories` in most places
 where they appear.

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


More information about the wp-trac mailing list