WordPress/wp-includes/rest-api/endpoints
James Nylen b6ce4e2830 REST API: Fix multiple issues with setting dates of posts and comments.
This commit modifies the `rest_get_date_with_gmt` function to correctly parse local and UTC timestamps with or without timezone information.

It also ensures that the REST API can edit the dates of draft posts by setting the `edit_date` flag to `wp_update_post`.

Overall this commit ensures that post and comment dates can be set and updated as expected.

Fixes #39256.

Built from https://develop.svn.wordpress.org/trunk@40101


git-svn-id: http://core.svn.wordpress.org/trunk@40038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-21 18:18:45 +00:00
..
class-wp-rest-attachments-controller.php Docs: Correct rest_insert_* duplicate hook references in REST API. 2017-01-04 13:23:40 +00:00
class-wp-rest-comments-controller.php REST API: Unify object access handling for simplicity. 2017-01-26 13:39:41 +00:00
class-wp-rest-controller.php REST API: Remove rest_get_post filter and get_post abstraction. 2016-11-08 13:09:33 +00:00
class-wp-rest-post-statuses-controller.php REST API: Unify object access handling for simplicity. 2017-01-26 13:39:41 +00:00
class-wp-rest-post-types-controller.php REST API: Unify object access handling for simplicity. 2017-01-26 13:39:41 +00:00
class-wp-rest-posts-controller.php REST API: Fix multiple issues with setting dates of posts and comments. 2017-02-21 18:18:45 +00:00
class-wp-rest-revisions-controller.php REST API: Cast revision author ID to int. 2017-02-16 20:09:45 +00:00
class-wp-rest-settings-controller.php Docs: Misc corrections and additions to inline documentation. 2016-12-27 09:28:40 +00:00
class-wp-rest-taxonomies-controller.php REST API: Unify object access handling for simplicity. 2017-01-26 13:39:41 +00:00
class-wp-rest-terms-controller.php REST API: Unify object access handling for simplicity. 2017-01-26 13:39:41 +00:00
class-wp-rest-users-controller.php REST API: Unify object access handling for simplicity. 2017-01-26 13:39:41 +00:00