[wp-trac] [WordPress Trac] #44975: REST API support switching draft to unscheduled

WordPress Trac noreply at wordpress.org
Mon Sep 23 14:15:49 UTC 2019


#44975: REST API support switching draft to unscheduled
-------------------------------------------------+-------------------------
 Reporter:  mnelson4                             |       Owner:
                                                 |  adamsilverstein
     Type:  feature request                      |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.3
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch 2nd-opinion has-unit-      |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by adamsilverstein):

 [attachment:"44975.5.diff"] worked for null in my testing - sending a null
 value for date_gmt reset the date correctly. Screencast -
 https://cl.ly/e8bb21e13ac3 - note I did have to reload to show the correct
 date, this is like a gutenberg issue though and might already be resolved
 in the plugin/5.3.

 Checking the database, i see the expected 0 values for the post -
 https://cl.ly/8968c001c517/MySQL_5.7.26_wpdev.localhostdevelopwordpresswp_posts_2019-09-23_08-13-24.jpg

 One question: is the intention to also allow an empty string to reset or
 only null? when I tested with empty strings the save was rejected with the
 error "Updating failed. Error message: Invalid parameter(s): date_gmt" -
 https://cl.ly/7d968427a5ff

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


More information about the wp-trac mailing list