Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#38438 closed enhancement (fixed)

Include `taxonomies` as an attribute of post types

Reported by: danielbachhuber's profile danielbachhuber Owned by: joehoyle's profile joehoyle
Milestone: 4.7 Priority: normal
Severity: normal Version: 4.7
Component: REST API Keywords: needs-patch dev-feedback
Focuses: Cc:


GET /wp-json/wp/v2/taxonomies/category includes a types attribute with ['post'], but GET /wp-json/wp/v2/types/post doesn't include a taxonomies attribute.

Attachments (1)

38438.1.diff (4.1 KB) - added by danielbachhuber 8 years ago.

Download all attachments as: .zip

Change History (7)

#1 @rachelbaker
8 years ago

  • Milestone changed from Awaiting Review to 4.7
  • Version set to trunk

#2 @rmccue
8 years ago

Can we punt this to 4.8?

#3 @jnylen0
8 years ago

I don't think we should punt this: it's a nice consistency improvement, not very difficult to patch, and it's closely related to #38439 and #38607.

#4 @danielbachhuber
8 years ago

  • Type changed from defect (bug) to enhancement

This ticket was mentioned in Slack in #core-restapi by joehoyle. View the logs.

8 years ago

#6 @joehoyle
8 years ago

  • Owner set to joehoyle
  • Resolution set to fixed
  • Status changed from new to closed

In 39097:

REST API: Include taxonomies as an attribute of post types.

Add the taxonomies for a post type to the /wp/v2/types endpoint, so clients know which taxonomies are available for which post types.

Props danielbachhuber.
Fixes #38438, #38631.

Note: See TracTickets for help on using tickets.