[wp-trac] [WordPress Trac] #39953: REST API: Add `date_floating` flag for posts
WordPress Trac
noreply at wordpress.org
Thu Aug 2 13:12:12 UTC 2018
#39953: REST API: Add `date_floating` flag for posts
------------------------------------------+------------------------------
Reporter: jnylen0 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses: rest-api
------------------------------------------+------------------------------
Comment (by earnjam):
This just came up in Gutenberg because we can't reliably tell if a draft
post has a date set or not to know what to display in the publish panel as
the date.
https://github.com/WordPress/gutenberg/issues/7195
One option is to allow the `date_gmt` value be `null` in the `edit`
context. Not necessarily ideal, but it continues the pattern used by the
classic editor.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39953#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list