Skip to content

Commit 93bcde2

Browse files
committed
Add initial import from devhub
1 parent f979d3b commit 93bcde2

33 files changed

+9219
-0
lines changed

changelog.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Changelog
2+
3+
This document details changes to the WP REST API since its public release in version 4.7.0.
4+
## Version 4.8.0
5+
<ul>
6+
<li>Improve strings added after 4.7.0 string freeze. [#](https://core.trac.wordpress.org/changeset/40571), [#](https://core.trac.wordpress.org/changeset/40606)</li>
7+
<li>Canonicalize header names in `WP_REST_Request::remove_header()`. [#](https://core.trac.wordpress.org/changeset/40577)</li>
8+
<li>Allow `Origin: null` from `file:` URLs. [#](https://core.trac.wordpress.org/changeset/40600)</li>
9+
<li>Set global `$post` variable when preparing revisions. [#](https://core.trac.wordpress.org/changeset/40601)</li>
10+
<li>Include `featured_media` in embed responses. [#](https://core.trac.wordpress.org/changeset/40602)</li>
11+
<li>Add `author`, `modified`, and `parent` sort order options for posts. [#](https://core.trac.wordpress.org/changeset/40605)</li>
12+
<li>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`.** [#](http://core.trac.wordpress.org/changeset/40628)</li>
13+
<li>Do not set `X-WP-Deprecated*` headers as often. [#](https://core.trac.wordpress.org/changeset/40782)</li>
14+
<li>Avoid sending blank `Last-Modified` headers with authenticated requests. [#](https://core.trac.wordpress.org/changeset/40805)</li>
15+
<li>Fix changing parameters with `$request-&gt;set_param()` for some requests. [#](https://core.trac.wordpress.org/changeset/40815)</li>
16+
<li>In the admin area, ensure the REST API endpoint URL is forced to `https` when necessary. [#](https://core.trac.wordpress.org/changeset/40843)</li>
17+
</ul>
18+
## Version 4.7.4
19+
<ul>
20+
<li>Fix another (DST-related) issue with dates of posts. [#](https://core.trac.wordpress.org/changeset/40325)</li>
21+
<li>Add `gmt_offset` and `timezone_string` to the base `/wp-json` response. [#](https://core.trac.wordpress.org/changeset/40336)</li>
22+
<li>Confirm that the parent post object of an attachment exists in `WP_REST_Posts_Controller::check_read_permission()`. [#](https://core.trac.wordpress.org/changeset/40337)</li>
23+
<li>Allow fetching multiple users and terms at once via the `slug` parameters of the respective endpoints. [#](https://core.trac.wordpress.org/changeset/40426), [#](https://core.trac.wordpress.org/changeset/40427)</li>
24+
</ul>
25+
## Version 4.7.3
26+
<ul>
27+
<li>Cast revision author ID to int. [#](https://core.trac.wordpress.org/changeset/40078)</li>
28+
<li>Correctly serve the index with `PATH_INFO`. [#](https://core.trac.wordpress.org/changeset/40079)</li>
29+
<li>Include the `status` property in `view` context responses from the Posts endpoints. [#](https://core.trac.wordpress.org/changeset/40081)</li>
30+
<li>`wp-api.js` client: Use `_.extend` instead of `_.union` when merging objects. [#](https://core.trac.wordpress.org/changeset/40084)</li>
31+
<li>To prepare for a full multisite implementation [in 4.8](https://make.wordpress.org/core/2017/02/08/improving-the-rest-api-users-endpoint-for-multisite-in-4-7-3-and-4-8/), do not allow access to users from a different site. [#](https://core.trac.wordpress.org/changeset/40111)</li>
32+
<li>Correctly parse body parameters for `DELETE` requests. [#](https://core.trac.wordpress.org/changeset/40113)</li>
33+
<li>Fix multiple issues with dates of posts and comments. [#](https://core.trac.wordpress.org/changeset/40114), [#](https://core.trac.wordpress.org/changeset/40115)</li>
34+
<li>`wp-api.js` client: Fix route discovery for custom namespaces. [#](https://core.trac.wordpress.org/changeset/40117)</li>
35+
<li>Fix the behavior of the `sticky` posts filter when no posts are sticky. [#](https://core.trac.wordpress.org/changeset/40136)</li>
36+
<li>Allow setting all post formats even if they are not supported by the theme. [#](https://core.trac.wordpress.org/changeset/40137)</li>
37+
</ul>
38+
## Version 4.7.2
39+
<ul>
40+
<li>Unify object access handling for simplicity. [#](https://core.trac.wordpress.org/changeset/39957)</li>
41+
</ul>
42+
## Version 4.7.1
43+
<ul>
44+
<li>Treat any falsy value as `false` in `'rest_allow_anonymous_comments'`. [#](https://core.trac.wordpress.org/changeset/39566)</li>
45+
<li>`wp-api.js` client: Fix setup of models used by `wp.api.collections` objects. [#](https://core.trac.wordpress.org/changeset/39604)</li>
46+
<li>Do not error on empty JSON body. [#](https://core.trac.wordpress.org/changeset/39609)</li>
47+
<li>Do not include the `password` argument for the `GET /wp/v2/media` endpoint. [#](https://core.trac.wordpress.org/changeset/39610)</li>
48+
<li>Allow sending empty or no-op comment updates. [#](https://core.trac.wordpress.org/changeset/39628)</li>
49+
<li>Add support for filename search in the `GET /wp/v2/media` endpoint. [#](https://core.trac.wordpress.org/changeset/39629)</li>
50+
<li>Fix PHP warnings when `get_theme_support( 'post-formats' )` is not an array. [#](https://core.trac.wordpress.org/changeset/39630)</li>
51+
<li>Improve the `rest_*_collection_params` filter docs and fix the terms filter. [#](https://core.trac.wordpress.org/changeset/39631)</li>
52+
<li>Allow schema `sanitization_callback` to be set to `null` to bypass built-in sanitization. [#](https://core.trac.wordpress.org/changeset/39642)</li>
53+
<li>Change which users are shown in the users endpoint. [#](https://core.trac.wordpress.org/changeset/39844)</li>
54+
</ul>

extending-the-rest-api.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Extending the REST API
2+
3+
## Guides
4+
[Adding Endpoints](https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/): create custom REST API endpoints for your plugin or application
5+
6+
[Working with Custom Content Types](https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-rest-api-support-for-custom-content-types/): learn how to interact with your [custom post types](https://developer.wordpress.org/plugins/post-types/) and [custom taxonomies](https://developer.wordpress.org/plugins/post-types/) through the REST API
7+
8+
[Modifying responses](https://developer.wordpress.org/rest-api/extending-the-rest-api/modifying-responses/): add fields to REST API response objects using `register_rest_field`
9+
## Resources
10+
[Defining your API Schema](https://developer.wordpress.org/rest-api/extending-the-rest-api/schema/): define the schema for your REST API resources and their arguments
11+
12+
[Glossary](https://developer.wordpress.org/rest-api/extending-the-rest-api/glossary/): get up to speed with phrases used throughout our documentation
13+
14+
[Routes &amp; Endpoints](https://developer.wordpress.org/rest-api/extending-the-rest-api/routes-and-endpoints/): dive deeper into the nuances of REST API routes and the endpoints they provide
15+
16+
[Controller Classes](https://developer.wordpress.org/rest-api/extending-the-rest-api/controller-classes/): discover how to structure and extend REST API endpoint controller classes

0 commit comments

Comments
 (0)