[wp-trac] [WordPress Trac] #39953: REST API: Do not update date when preparing post if date is known to be "floating"

WordPress Trac noreply at wordpress.org
Fri Jan 4 17:26:23 UTC 2019


#39953: REST API: Do not update date when preparing post if date is known to be
"floating"
--------------------------------------+-----------------------
 Reporter:  jnylen0                   |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  5.1
Component:  REST API                  |     Version:  4.7
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+-----------------------

Comment (by mnelson4):

 What about adding allowing `register_post_status()` to support another arg
 named something like "date_floating"?

 If it were set to true, it would indicate the date can be floating (like
 on draft, auto-draft, and pending), but if false then it indicates the
 date can't be floating (like published and private).

 Then we would expose that on `wp/v2/statuses`, and API clients would know
 how to account for floating dates for posts of that particular status.

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


More information about the wp-trac mailing list