Repository navigation
Releases: Pollora/wp-rest
Releases · Pollora/wp-rest
Release list
2.0.0
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
v0.2.1
v0.2.0
v0.1.0
A first version for the framework's next release to build on; 1.0.0 comes with that release.
Added
- First release, extracted from
pollora/framework(src/WpRest) with its history. Class names are unchanged:Pollora\WpRest\*, andPollora\Support\WpGlobals - Runs without Laravel's application: controllers are built by the discovery's instance resolver, with their constructor dependencies, and custom
HandlesAttributesattributes get the PSR-11 container given toWpRestDiscovery. An architecture test keeps the package to the attributes, discovery, PSR contracts and WordPress