You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
pollora/wp-rest 2.0 is accepted, and composer update installs it: a REST route that declares no permission is refused (rest_forbidden, 401 for a visitor, 403 for a logged-in user), where it used to stay public. Before updating, declare permissionCallback: Everyone::class on the routes that are public on purpose, or a permission such as IsLoggedIn. To keep the old behaviour for a while, return false from the pollora/wp-rest/private_by_default filter: WordPress then tells, with WP_DEBUG, which route to fix. To stay on the previous version, require "pollora/wp-rest": "^0.2" (there is no 1.x). The framework accepts ^0.1 || ^0.2 || ^1.0 || ^2.0
The development files (.harness.json, AGENTS.md, api-surface.json, composer-dependency-analyser.php, .gitignore) are kept out of the distribution archive, and pollora/harness is required at ^0.1.15