Make WordPress Core

Opened 10 years ago

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

Download all attachments as: .zip

Change History (6)

#1 @swissspidy
10 years ago

  • Owner set to swissspidy
  • Status new → reviewing

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


10 years ago

#3 @swissspidy
10 years ago

  • Resolution → fixed
  • Status reviewing → closed

In 40302:

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

Props danielbachhuber.
Fixes #39986.

#4 @swissspidy
10 years ago

  • Keywords fixed-major added
  • Resolution fixed
  • Status closed → reopened

#5 @swissspidy
10 years ago

  • Resolution → fixed
  • Status reopened → 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.