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

Exclude old single widgets from REST API #6

Open
westonruter opened this issue Jan 30, 2016 · 0 comments
Open

Exclude old single widgets from REST API #6

westonruter opened this issue Jan 30, 2016 · 0 comments

Comments

@westonruter
Copy link
Member

In order for a widget to be safely exposed in the REST API (that is, for unauthenticated requests), the widget needs permission callbacks to indicate whether or not fields in the instance are public or not. A schema has been proposed for being added to WP_Widget in #35574. Since old single widgets do not utilize WP_Widget they would not have a schema available, and since they are suggested to be deprecated in #35656, I suggest that they should be inherently not be exposed via the REST API.

@kadamwhite kadamwhite transferred this issue from WP-API/menus-endpoints Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant