[wp-trac] [WordPress Trac] #39953: REST API: Add `date_auto_update` field for posts

WordPress Trac noreply at wordpress.org
Thu Feb 23 20:17:25 UTC 2017


#39953: REST API: Add `date_auto_update` field for posts
------------------------------------------+------------------------------
 Reporter:  jnylen0                       |       Owner:
     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 nerrad):

 I'm still trying to decipher what the purpose of this ticket is so looking
 for clarification.

 So are you saying prior to the changes in #38883, the marker for whether a
 date got set to the current date when a draft post has its status changed
 is the `post_date_gmt` field being `0000-00-00 00:00:00` and AFTER the
 changes, that field has an actual specified date so there's no reliable
 marker to indicate updating the post to the current time of when the
 request is changing the post status?

 If so, I'm not sure I like the idea of adding a flag.  Instead I think the
 client should be responsible for setting the date period.  I realize there
 may be implications with this stance but I don't want to respond to those
 until I know that my interpretation of the purpose for this ticket is
 correct.

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


More information about the wp-trac mailing list