Skip to content

Commit

Permalink
Declare post type support based on the admin setting and allow overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryA committed Nov 24, 2017
1 parent 68c5017 commit 09d3685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/amp-helper-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function amp_get_permalink( $post_id ) {
}

function post_supports_amp( $post ) {
// Because `add_rewrite_endpoint` doesn't let us target specific post_types :(.
// Because `add_rewrite_endpoint` doesn't let us target specific post_types.
if ( ! post_type_supports( $post->post_type, AMP_QUERY_VAR ) ) {
return false;
}
Expand Down

0 comments on commit 09d3685

Please sign in to comment.