Wordpress/tests
Timothy Jacobs e66f459435 REST API: Don't validate status if it hasn't changed.
In particular, this allows for sending `status=inherit` to an attachment if it's current status is `inherit`. This status would be rejected because it is an "internal" post status which isn't exposed.

As a general rule, a developer should always be able to PUT back a GET response without error.

Props dfenton, pputzer, TimothyBlynJacobs.
Fixes #40399.



git-svn-id: https://develop.svn.wordpress.org/trunk@49302 602fd350-edb4-49c9-b593-d223f7449a82
2020-10-24 16:02:34 +00:00
..
e2e Editor: update JavaScript packages 2020-06-26 13:31:11 +00:00
gutenberg Editor: update packages; Port block supports to WordPress core. 2020-10-13 13:07:23 +00:00
phpunit REST API: Don't validate status if it hasn't changed. 2020-10-24 16:02:34 +00:00
qunit REST API: Regenerate wp-api-generated.js after [49276]. 2020-10-24 04:26:46 +00:00