[wp-trac] [WordPress Trac] #39256: REST API: Multiple issues with setting dates of posts

WordPress Trac noreply at wordpress.org
Sat Feb 18 19:21:32 UTC 2017


#39256: REST API: Multiple issues with setting dates of posts
--------------------------------------+-----------------------
 Reporter:  jnylen0                   |       Owner:  jnylen0
     Type:  defect (bug)              |      Status:  accepted
 Priority:  normal                    |   Milestone:  4.7.3
Component:  REST API                  |     Version:  4.7
 Severity:  major                     |  Resolution:
 Keywords:  has-unit-tests has-patch  |     Focuses:
--------------------------------------+-----------------------
Changes (by jnylen0):

 * keywords:  needs-patch has-unit-tests => has-unit-tests has-patch


Comment:

 In [attachment:39256.4.diff]:

 - Deprecate `rest_get_date_with_gmt`; add and use a new function
 (`rest_parse_date_with_utc`) instead.
 - Add tests for creating and updating comments as well as posts.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39256#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list