Skip to content

feat(deps): accept pollora/wp-rest 2.0 - #571

Open
ogorzalka wants to merge 1 commit into
developfrom
feat/accept-wp-rest-2
Open

ogorzalka wants to merge 1 commit into
developfrom
feat/accept-wp-rest-2

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Accepts pollora/wp-rest 2.0 again (^0.1 || ^0.2 || ^1.0 || ^2.0), reverting #567, to ship it in a release of its own.

With wp-rest 2, a REST route that declares no permission is refused (rest_forbidden). The CHANGELOG entry carries the migration note: Everyone::class for routes that are public on purpose, the pollora/wp-rest/private_by_default filter returning false during a migration, ^0.2 to stay on the previous behaviour.

The Undeclared e2e fixture and its test come back; the public fixtures already declare Everyone.

A REST route that declares no permission is refused with wp-rest 2.
The e2e suite covers it again with the Undeclared fixture.
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.

1 participant