Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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

#1889
Closed
phendrick wants to merge 1 commit into
WP-API:developWP-API/WP-API:developfrom
rooftopcms:show_in_rest_fixrooftopcms/WP-API:show_in_rest_fixCopy head branch name to clipboard
Closed

check that the post type has a show_in_rest property #1889
phendrick wants to merge 1 commit into
WP-API:developWP-API/WP-API:developfrom
rooftopcms:show_in_rest_fixrooftopcms/WP-API:show_in_rest_fixCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.