close
The Wayback Machine - https://web.archive.org/web/20210311073156/https://github.com/WordPress/gutenberg/issues/29144
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

Ensure there's a mechanism for disabling creation of new templates #29144

Open
mtias opened this issue Feb 19, 2021 · 1 comment
Open

Ensure there's a mechanism for disabling creation of new templates #29144

mtias opened this issue Feb 19, 2021 · 1 comment

Comments

@mtias
Copy link
Contributor

@mtias mtias commented Feb 19, 2021

It's important to account for scenarios where new template creation should be disabled and only editing of those already provided by the theme / site should be available.

@carlomanf
Copy link

@carlomanf carlomanf commented Feb 20, 2021

This looks similar to #27597, but should be more easily solved than that one. This one should just require explicitly setting $args['capabilities']['create_posts'] for the post type (or adding a filter to let other developers do it), and updating the UI to check for that capability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants