Skip to content

v13.39.3

Choose a tag to compare

@ogorzalka ogorzalka released this 02 Nov 10:20
· 38 commits to main since this release
bad1f80

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