Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#39986 closed defect (bug) (fixed)

Register missing REST API properties on WP_Post_Type

Reported by: danielbachhuber Owned by: swissspidy
Priority: normal Milestone: 4.7.4
Component: Posts, Post Types Version:
Severity: normal Keywords: has-patch fixed-major
Cc: Focuses:

Description

The following properties are missing on the class:

  • $show_in_rest
  • $rest_base
  • $rest_controller_class

Attachments (1)

39986.1.diff (3.2 KB ) - added by danielbachhuber 9 years ago.

Download all attachments as: .zip

Change History (6)

#1 @swissspidy
9 years ago

  • Owner set to swissspidy
  • Status newreviewing

This ticket was mentioned in Slack in #core by swissspidy. View the logs.


9 years ago

#3 @swissspidy
9 years ago

  • Resolutionfixed
  • Status reviewingclosed

In 40302:

Posts, Post Types: Add missing REST API properties to WP_Post_Type class.

Props danielbachhuber.
Fixes #39986.

#4 @swissspidy
9 years ago

  • Keywords fixed-major added
  • Resolution fixed
  • Status closedreopened

#5 @swissspidy
9 years ago

  • Resolutionfixed
  • Status reopenedclosed

In 40329:

Posts, Post Types: Add missing REST API properties to WP_Post_Type class.

Props danielbachhuber.
Fixes #39986.

Merges [40302] to the 4.7 branch.

Note: See TracTickets for help on using tickets.