Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

check that the post type has a show_in_rest property #1889

Closed
phendrick wants to merge 1 commit intoWP-API:developfrom
rooftopcms:show_in_rest_fix
Closed

check that the post type has a show_in_rest property #1889
phendrick wants to merge 1 commit intoWP-API:developfrom
rooftopcms:show_in_rest_fix

Conversation

@phendrick
Copy link
Copy Markdown

When hitting an endpoint (not /revisions) for a post that is in the 'revision' state, we get an
undefined property when calling check_is_post_type_allowed.

Notice: Undefined property: stdClass::$show_in_rest in rest-api/lib/endpoints/class-wp-rest-posts-controller.php on line 911

… being raised when the post is a revision)
@danielbachhuber
Copy link
Copy Markdown
Member

Thanks for the PR, @Foxpaul ! This was actually fixed in #1852, and will be included in beta 10

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants