[wp-trac] [WordPress Trac] #60184: Publication date 01/01/1970 is refused

WordPress Trac noreply at wordpress.org
Tue Sep 17 23:22:58 UTC 2024


#60184: Publication date 01/01/1970 is refused
---------------------------------------------+-------------------------
 Reporter:  emmanuel78                       |       Owner:  kadamwhite
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.7
Component:  REST API                         |     Version:  6.4.2
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  rest-api
---------------------------------------------+-------------------------
Changes (by kadamwhite):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59040" 59040]:
 {{{
 #!CommitTicketReference repository="" revision="59040"
 REST API: Allow posts to be published with a publication date of midnight
 1970-01-01.

 Explicitly checks date parsing return values for `false`, so that `0` (the
 value returned for the UNIX epoch of `1970-01-01 00:00:00`) is correctly
 treated as a valid timestamp.

 It should be valid to create a post dated to any point in history.

 Props emmanuel78, sabernhardt, siliconforks, drjosh07, antpb,
 TimothyBlynJacobs.
 Fixes #60184.
 }}}

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


More information about the wp-trac mailing list