Changes between Initial Version and Version 1 of Ticket #35629
- Timestamp:
- 01/27/2016 04:36:50 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35629 – Description
initial v1 3 3 1. Convert WP_Error to WP_REST_Response in WP_REST_Server->embed_links(). Later on `WP_REST_Server->response_to_data()` expects to always receive `WP_REST_Response`. With the current code, a `WP_Error` object returned from `dispatch()` inside of `embed_links()` would fatal, because `WP_Error` doesn't implement the same methods as `WP_REST_Response` 4 4 2. Properly support non-pretty permalink REST routes. `http://example.org/?rest_route=%2Ftest%2Ftest%2Fembeddable&error=1` won't be embedded because it doesn't match `http://example.org/?rest_route=/` 5 6 Related https://github.com/WP-API/WP-API/issues/2109