Skip to content

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

Merged
ogorzalka merged 1 commit into
developfrom
feat/accept-wp-rest-2
Nov 2, 2026
Merged

ogorzalka merged 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.
@ogorzalka
ogorzalka merged commit 900b081 into develop Nov 2, 2026
20 checks passed
@ogorzalka ogorzalka mentioned this pull request Nov 2, 2026
@ogorzalka
ogorzalka deleted the feat/accept-wp-rest-2 branch November 2, 2026 11:46
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