Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add slug constants for theme support and post type support #1456

merged 2 commits into from
Sep 23, 2018


Copy link

@westonruter westonruter commented Sep 23, 2018

Instead of using a string literal 'amp' everywhere to add/remove/get the theme support, it seems preferable to have this in a constant like AMP_Theme_Support::SLUG instead.

Likewise, when adding post type support it seems preferable that there be a constant like AMP_Post_Type_Support::SLUG as opposed to re-using amp_get_slug() whose value is variable.

@westonruter westonruter changed the title [WIP] Add support slug constants Add slug constants for theme support and post type support Sep 23, 2018
Copy link

@hellofromtonya hellofromtonya left a comment

Choose a reason for hiding this comment

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

Much better solution. Thank you @westonruter

@westonruter westonruter added this to the v1.0 milestone Sep 23, 2018
@westonruter westonruter merged commit 1b3bf23 into develop Sep 23, 2018
@westonruter westonruter deleted the add/support-slug-constants branch September 23, 2018 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants