Changelog Edit

This document details changes to the WP REST API since its public release in version 4.7.0.

Version 4.8.1 Version 4.8.1

  • Add a filter to allow modifying the response after embedded data is added. [#](
  • `wp-api.js` client: Correctly interpret `settings` resource as a model rather than a collection. [#](
  • Fix `PUT` (and other) requests for nginx servers by tweaking REST API URLs. [#](

Top ↑

Version 4.8.0 Version 4.8.0

  • Improve strings added after 4.7.0 string freeze. [#](, [#](
  • Canonicalize header names in `WP_REST_Request::remove_header()`. [#](
  • Allow `Origin: null` from `file:` URLs. [#](
  • Set global `$post` variable when preparing revisions. [#](
  • Include `featured_media` in embed responses. [#](
  • Add `author`, `modified`, and `parent` sort order options for posts. [#](
  • Add endpoint for proxying requests to external oEmbed providers, and use it in the media modal instead of the `parse-embed` AJAX action.  **This is the first usage of the WP REST API in `wp-admin`.** [#](
  • Do not set `X-WP-Deprecated*` headers as often. [#](
  • Avoid sending blank `Last-Modified` headers with authenticated requests. [#](
  • Fix changing parameters with `$request->set_param()` for some requests. [#](
  • In the admin area, ensure the REST API endpoint URL is forced to `https` when necessary. [#](

Top ↑

Version 4.7.4 Version 4.7.4

  • Fix another (DST-related) issue with dates of posts. [#](
  • Add `gmt_offset` and `timezone_string` to the base `/wp-json` response. [#](
  • Confirm that the parent post object of an attachment exists in `WP_REST_Posts_Controller::check_read_permission()`. [#](
  • Allow fetching multiple users and terms at once via the `slug` parameters of the respective endpoints. [#](, [#](

Top ↑

Version 4.7.3 Version 4.7.3

  • Cast revision author ID to int. [#](
  • Correctly serve the index with `PATH_INFO`. [#](
  • Include the `status` property in `view` context responses from the Posts endpoints. [#](
  • `wp-api.js` client: Use `_.extend` instead of `_.union` when merging objects. [#](
  • To prepare for a full multisite implementation [in 4.8](, do not allow access to users from a different site. [#](
  • Correctly parse body parameters for `DELETE` requests. [#](
  • Fix multiple issues with dates of posts and comments. [#](, [#](
  • `wp-api.js` client: Fix route discovery for custom namespaces. [#](
  • Fix the behavior of the `sticky` posts filter when no posts are sticky. [#](
  • Allow setting all post formats even if they are not supported by the theme. [#](

Top ↑

Version 4.7.2 Version 4.7.2

  • Unify object access handling for simplicity. [#](

Top ↑

Version 4.7.1 Version 4.7.1

  • Treat any falsy value as `false` in `’rest_allow_anonymous_comments’`. [#](
  • `wp-api.js` client: Fix setup of models used by `wp.api.collections` objects. [#](
  • Do not error on empty JSON body. [#](
  • Do not include the `password` argument for the `GET /wp/v2/media` endpoint. [#](
  • Allow sending empty or no-op comment updates. [#](
  • Add support for filename search in the `GET /wp/v2/media` endpoint. [#](
  • Fix PHP warnings when `get_theme_support( ‘post-formats’ )` is not an array. [#](
  • Improve the `rest_*_collection_params` filter docs and fix the terms filter. [#](
  • Allow schema `sanitization_callback` to be set to `null` to bypass built-in sanitization. [#](
  • Change which users are shown in the users endpoint. [#](