[wp-trac] [WordPress Trac] #38342: Quick Draft: Leverage REST API endpoints
WordPress Trac
noreply at wordpress.org
Thu Oct 27 20:41:22 UTC 2016
#38342: Quick Draft: Leverage REST API endpoints
----------------------------------+-------------------------
Reporter: adamsilverstein | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: needs-patch REST-API | Focuses: javascript
----------------------------------+-------------------------
Changes (by adamsilverstein):
* keywords: REST-API has-patch => needs-patch REST-API
Comment:
This is looking really good @aduth, thanks for putting so much work into
this feature!
The issues you raised around Dates are important and were a serious pain
point when developing the wp-api Backbone client - in particular the new
draft post_status case where the `{}_gmt` dates are returned as `null`
from the api. I think the timezone offset is adequate here. I'd love to
see us include Moment.js and possibly Moment-Timezone for better date
support, these are great libraries.
One possible issue with the API returning `_gmt` when the database doesn't
have a gmt date is that sending back that same data (when saving the post
again) will cause unexpected results.
I wonder how we can address the underlying issue with null `_gmt` dates in
the database and still cover the goal of #5698?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38342#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list