[wp-trac] [WordPress Trac] #32039: Publish date when publishing a scheduled post in the past

WordPress Trac noreply at wordpress.org
Tue Apr 21 16:04:43 UTC 2015


#32039: Publish date when publishing a scheduled post in the past
-------------------------------+-----------------------------
 Reporter:  adambarclay        |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  4.1.1
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 Given the following steps:

 1. Set a post to be scheduled at a later date, i.e. 20/04/2015 11:30
 2. Wait until that time has passed and then click 'Publish', i.e. at
 21/04/2015 09:00

 The post's published date is set to the date at which it was scheduled to
 go live, when in reality it was not actually pushed to a published state
 until the time publish was clicked.

 `$post->date` was `2014-04-20T11:30` and not the expected
 `2014-04-21T009:00`, and published date in UI shows the incorrect date.

 Although this is not necessarily a common occurrence (basically forgetting
 to click Publish / Schedule) it is possible in the UI and leads to a
 confusing date, and one that in our case breaks other functionality that
 relies on a published date.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32039>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list