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

Rest route registered incorrectly #26

Open
xipasduarte opened this issue Jan 14, 2021 · 0 comments
Open

Rest route registered incorrectly #26

xipasduarte opened this issue Jan 14, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@xipasduarte
Copy link
Collaborator

WordPress 5.5 made the permission_callback required, and it now issues a warning every time the argument is missing.

The REST API route definition for myplugin/v1/author is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback.

More on this in the documentation: https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/#permissions-callback

@xipasduarte xipasduarte added the bug Something isn't working label Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant