[wp-trac] [WordPress Trac] #38883: Shim post_date_gmt for drafts / empty dates in the REST API

WordPress Trac noreply at wordpress.org
Mon Nov 21 19:56:24 UTC 2016


#38883: Shim post_date_gmt for drafts / empty dates in the REST API
--------------------------------------+------------------------------
 Reporter:  joehoyle                  |       Owner:  rmccue
     Type:  defect (bug)              |      Status:  reviewing
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  REST API                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-unit-tests has-patch  |     Focuses:
--------------------------------------+------------------------------

Comment (by adamsilverstein):

 ''"The empty post_date_gmt is used as the marker to indicate that
 post_date should be updated to the current time when saved."
 ''
 Why not use the post status to determine if post_date gets updated? if the
 post is in a draft state we would update the post_date on every update?

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


More information about the wp-trac mailing list