Releases: WebDevStudios/WDS-WP-REST-API-Connect
Releases · WebDevStudios/WDS-WP-REST-API-Connect
v0.2.6
v0.2.5
- Fix a typo from a variable which should be using an object property (for legacy mode).
v0.2.4
- Fix broken logic in
Connect::auth_request()where $response variable might not get properly set.
v0.2.3
- Update example.php
- Make requests more consistent, and pass parameters through appropriate filters.
- Fixed a few missed exception handlers.
v0.2.2
- Add set_headers method to be able to set headers for discovery.
- Use our own API Discovery library to use the WP http API, and to correctly pass any headers if they exist.
v0.2.1
- Bug fix: Fix the order of checks in the reset_connection method to ensure the delete_stored_error method is always called.
v0.2.0
- Complete rewrite. Breaks backwards-compatibility, but previous version will not work with the newest version of the WordPress OAuth plugin. Please review the WP-API Authentication documentation.
v0.1.4
- Add utility methods for dealing with errors.
- Convert post body to a query string before wp_remote_request does because http_build_query drops empty values and oauth signatures end up not matching.
v0.1.3
- Fix some docs, and "clever" code, and fix an incorrect variable name.
- Add class_exists check so we don't break sites w/ multiple instantiations.
- Store response code as object property.
- Account for
WP_Errorfrom responses before creating response code. - Accept a headers array, and pass those headers to all requests.
- Option/transient key should be a hash of all the args, not just the url.
- Do not cache api description if request is a failure (or being requested not to).
- Make headers and key/option_key accessible as read-only properties.
- Change from JSON to REST to match WordPress core plugin.
- Move error option to its own method.
v0.1.2
- Better checks for failed requests.
- Set the http method for each call so that the OAuth signature matches.
- Create a redirect URL based on current url or allow one to be passed in.
- Keep response as an accessible class property, and add get/set request methods. Also properly handle GET request authorization header.
- Some cleanup based on scrutinizer feedback.