Go to file
Jonathan Desrosiers 225f191f32 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@44126 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-13 22:41:47 +00:00
src REST API: Introduce Autosaves controller and endpoint. 2018-12-13 22:41:47 +00:00
tests REST API: Introduce Autosaves controller and endpoint. 2018-12-13 22:41:47 +00:00
tools Blocks: Parse blocks when displaying posts. 2018-12-13 18:11:10 +00:00
.editorconfig General: Instruct file editors not to trim trailing whitespace in markdown files. 2018-03-20 22:14:53 +00:00
.gitignore Build/Tools: Update PHPCS ruleset for WP Core and related Composer setup. 2018-06-15 15:56:58 +00:00
.jshintrc
.npmrc Once upon a midnight dreary, while I coded, weak and weary, 2018-05-23 10:04:22 +00:00
.nvmrc Once upon a midnight dreary, while I coded, weak and weary, 2018-05-23 10:04:22 +00:00
.travis.yml Build/Test Tools: Use 7.3 for PHP 7.3 2018-12-11 04:20:02 +00:00
composer.json Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
composer.lock Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
Gruntfile.js Build tools: Build @wordpress packages with webpack. 2018-12-13 15:25:37 +00:00
jsdoc.conf.json Build Tools: Fix JSDoc configuration include paths. 2018-06-14 12:45:06 +00:00
package-lock.json Build tools: Build @wordpress packages with webpack. 2018-12-13 15:25:37 +00:00
package.json Build tools: Build @wordpress packages with webpack. 2018-12-13 15:25:37 +00:00
phpcs.xml.dist Multisite: Fix coding standard errors after [43654]. 2018-09-24 15:22:01 +00:00
phpunit.xml.dist REST API: Introduce Autosaves controller and endpoint. 2018-12-13 22:41:47 +00:00
webpack.config.js Build tools: Build @wordpress packages with webpack. 2018-12-13 15:25:37 +00:00
wp-cli.yml Tools: Update wp-cli.yml to point to the build directory. 2018-05-25 00:14:14 +00:00
wp-config-sample.php
wp-tests-config-sample.php Build/Test Tools: Roses are red, this fixes stuff. 2018-05-23 17:54:44 +00:00