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

WordPress Trac noreply at wordpress.org
Sat Aug 4 10:19:48 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):

 Replying to [comment:17 mnelson4]:
 > Actually one comment though: the name `scheduled_to_publish` or just
 `scheduled` would be a more intuitive name than `date_floating`, speaking
 as one less familiar with the established jargon. I think this name would
 make more sense on published posts too.
 > I think this name corresponds especially well to the post editing page,
 when posts are scheduled or not.
 > To be exact, when the column `post_date_gmt=0000-00-00 00:00:00`, or
 when the post was already published, it would be false, but when the post
 is a draft and has any other `post_date_gmt`, it would be true.
 > Thoughts on this name suggestion?

 `scheduled` is a post status that essentially denotes that a user has
 manually set a date in the future and wants it to switch to `publish` at
 that time. When a post is transitioned to `publish`, `scheduled` or
 `trash` status, it should always have a `post_date_gmt` value stored. So I
 don't think that term works here.

 In this case, we're just looking at posts which are still in the `auto-
 draft` or `draft` status, and a date has not yet been set either by the
 user, or by transitioning to `publish` or `trash`.

 I think `date_floating` works because it signifies that a permanent date
 hasn't been affixed yet. I'm not tied to that, but can't think of a better
 alternative at the moment.

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


More information about the wp-trac mailing list