[wp-trac] [WordPress Trac] #32386: Draft's Last Modified date incorrect if it is Scheduled

WordPress Trac noreply at wordpress.org
Tue May 19 04:07:35 UTC 2015


#32386: Draft's Last Modified date incorrect if it is Scheduled
--------------------------+---------------------------------
 Reporter:  lastnode      |       Owner:  obenland
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.3
Component:  Date/Time     |     Version:  4.2.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  ui, administration
--------------------------+---------------------------------

Comment (by lastnode):

 Thanks for taking a look at this, Yoav and Konstantin!

 Attempted to fix the time in excerpt mode in [attachment: 32386.1.diff].
 Not sure if this was the most elegant way to do it, though! :)

 Also fixed times for Drafts not being run through `human_time_diff()`.

 Tried to make the variable names a little more meaningful as well, but
 left `$h_time` and `$t_time` alone, as I'm not sure if those are used
 elsewhere and should remain the same.

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


More information about the wp-trac mailing list