Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#39986 closed defect (bug) (fixed)

Register missing REST API properties on WP_Post_Type

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

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 7 years ago.

Download all attachments as: .zip

Change History (6)

#1 @swissspidy
7 years ago

  • Owner set to swissspidy
  • Status changed from new to reviewing

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


7 years ago

#3 @swissspidy
7 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 40302:

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

Props danielbachhuber.
Fixes #39986.

#4 @swissspidy
7 years ago

  • Keywords fixed-major added
  • Resolution fixed deleted
  • Status changed from closed to reopened

#5 @swissspidy
7 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

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.