Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for conflict with WP REST API v2
rest-api hooks into parse_request at the default priority (10); when authorizer hooked into parse_request at priority 1, the removal of authorizer’s action hook somehow clobbered the processing of rest-api’s hook. This commit moves authorizer’s parse_request hook to priority 20, so it fires after rest-api. Note that authorizer access permissions will still apply to REST endpoints; however, if access is denied, html will be returned as a response to the REST call instead of JSON. https://wordpress.org/plugins/rest-api/
- Loading branch information