Repository navigation
A major release: a route that declares no permission is refused.
Changed
- A route without a permission is refused (
rest_forbidden, 401 for a visitor, 403 for a logged-in user). Until now it stayed public and called_doing_it_wrong(). DeclarepermissionCallback: Everyone::classon the routes that are public on purpose, or a permission such asIsLoggedIn - The
pollora/wp-rest/private_by_defaultfilter now defaults totrue. Returnfalseto keep the routes without a permission public while a site migrates; WordPress is then told, withWP_DEBUG, which route to fix
Removed
- The
pollora/wp_rest/private_by_defaultfilter name and theWpRestRouteRegistrar::PRIVATE_BY_DEFAULTconstant, deprecated since 0.2.1. Usepollora/wp-rest/private_by_default