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

Account for FSE post types in rest endpoints. #912

Closed
1 task done
peterwilsoncc opened this issue Jul 21, 2022 · 0 comments · Fixed by #1246
Closed
1 task done

Account for FSE post types in rest endpoints. #912

peterwilsoncc opened this issue Jul 21, 2022 · 0 comments · Fixed by #1246
Assignees
Labels
type:enhancement New feature or request.
Milestone

Comments

@peterwilsoncc
Copy link
Collaborator

Is your enhancement related to a problem? Please describe.

RestApi\check_post_types_permissions() currently lists all post types available in the WordPress REST API. With the introduction of full site editing, this includes templates and other items that should probably never be shared.

Modify how the function searches for distributatble post types, possibly by changing to use Utils\distributable_post_types().

Designs

No response

Describe alternatives you've considered

TBA

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement New feature or request.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants