Skip to content

Add permission callbacks to REST API endpoints#39

Open
joemcgill wants to merge 1 commit into
WP-API:developfrom
alleyinteractive:update/fix-permissions-callbacks
Open

Add permission callbacks to REST API endpoints#39
joemcgill wants to merge 1 commit into
WP-API:developfrom
alleyinteractive:update/fix-permissions-callbacks

Conversation

@joemcgill

Copy link
Copy Markdown

This fixes a notice thrown since WP 5.5 when a REST route is registered
without explicitly adding a permission callback.

This fixes a notice thrown since WP 5.5 when a REST route is registered
without explicitly adding a permission callback.
@joemcgill joemcgill mentioned this pull request Nov 10, 2020

@sun sun left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please only perform the necessary changes and do not include any changes to unrelated lines; i.e., please revert the coding style changes - you may create a separate PR for them, but they are out of scope for this change and therefore should not be included.

@jhhazelaar jhhazelaar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All good!

@jhhazelaar jhhazelaar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Removed whitespaces

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

Successfully merging this pull request may close these issues.

3 participants