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

Conversation

@danielbachhuber
Copy link
Member

Props @bradyvercher

From #2286

danielbachhuber added a commit that referenced this pull request Mar 18, 2016
Only add alternate link header for publicly viewable CPTs
@danielbachhuber danielbachhuber merged commit aec0d49 into develop Mar 18, 2016
@danielbachhuber danielbachhuber deleted the 2286-alternate-link-header branch March 18, 2016 15:26
$response = rest_ensure_response( $data );

if ( is_post_type_viewable( $post->post_type ) ) {
if ( is_post_type_viewable( get_post_type_object( $post->post_type ) ) ) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I'm questioning everything. I dunno why I didn't catch that before. Thanks!

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants