[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
Mon Sep 23 20:01:38 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.3
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:  rest-api
  note                                           |
-------------------------------------------------+-------------------------

Comment (by TimothyBlynJacobs):

 Added a patch that marks the `pending` post status as having a floating
 date as well. See https://github.com/WordPress/gutenberg/issues/13176.

 Creating a new ticket to update the hardcoded list of statuses in
 `wp_insert_post` as well: https://github.com/WordPress/wordpress-
 develop/blob/9a105cf0049e7bc5a0da1ba05c01373f566a7335/src/wp-
 includes/post.php#L3729

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


More information about the wp-trac mailing list