WordPress/wp-includes/rest-api/endpoints
desrosj d4d16ec083 REST API: Introduce Autosaves controller and endpoint.
- Adds `WP_REST_Autosaves_Controller` which extends `WP_REST_Revisions_Controller`.
- Autosaves endpoint is registered for all post types except attachment because even post types without revisions enabled are expected to autosave.
- Because setting the `DOING_AUTOSAVE` constant pollutes the test suite, autosaves tests are run last. We may want to improve upon this later. 

Also, use a truly impossibly high number in User Controller tests. The number `100`, (or `7777` in `trunk`), could be valid in certain test run configurations. The `REST_TESTS_IMPOSSIBLY_HIGH_NUMBER` constant is impossibly high for this very reason.

Finally, Skip Autosaves controller test for multisite. There's a PHP 5.2 edge case where paths calculated differently, possibly caused by differing version of PHPUnit.

Props adamsilverstein, aduth, azaozz, danielbachhuber, rmccue, danielbachhuber.

Merges [43767], [43768], [43769] to trunk.

See #45132, #45131.
Fixes #45128, #43316.
Built from https://develop.svn.wordpress.org/trunk@44126


git-svn-id: http://core.svn.wordpress.org/trunk@43956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-13 22:42:38 +00:00
..
class-wp-rest-attachments-controller.php REST API: Fire actions after items are completely updated/inserted. 2018-12-12 21:12:24 +00:00
class-wp-rest-autosaves-controller.php REST API: Introduce Autosaves controller and endpoint. 2018-12-13 22:42:38 +00:00
class-wp-rest-comments-controller.php REST API: Fire actions after items are completely updated/inserted. 2018-12-12 21:12:24 +00:00
class-wp-rest-controller.php REST API: Don't add fields to object when not included in ?_fields=. 2018-12-12 20:51:25 +00:00
class-wp-rest-post-statuses-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-rest-post-types-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-rest-posts-controller.php REST API: Fire actions after items are completely updated/inserted. 2018-12-12 21:12:24 +00:00
class-wp-rest-revisions-controller.php REST API: Support pagination, order, search and other common query parameters for revisions. 2018-08-28 12:23:26 +00:00
class-wp-rest-search-controller.php REST API: Introduce controller for searching across post types. 2018-12-13 09:38:25 +00:00
class-wp-rest-settings-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-rest-taxonomies-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-rest-terms-controller.php REST API: Fire actions after items are completely updated/inserted. 2018-12-12 21:12:24 +00:00
class-wp-rest-themes-controller.php REST API: Introduce themes endpoint to expose theme-supports values for the active theme. 2018-12-12 03:33:24 +00:00
class-wp-rest-users-controller.php REST API: Fire actions after items are completely updated/inserted. 2018-12-12 21:12:24 +00:00