[wp-meta] [Making WordPress.org] #3511: Sometimes Status_Transitions::transition_post_status() stores the date as -62169984000

Making WordPress.org noreply at wordpress.org
Wed Mar 14 05:15:00 UTC 2018


#3511: Sometimes Status_Transitions::transition_post_status() stores the date as
-62169984000
------------------------------+---------------------
 Reporter:  dd32              |       Owner:  dd32
     Type:  defect            |      Status:  closed
 Priority:  normal            |   Milestone:
Component:  Plugin Directory  |  Resolution:  fixed
 Keywords:                    |
------------------------------+---------------------
Changes (by dd32):

 * owner:   => dd32
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"6873"]:
 {{{
 #!CommitTicketReference repository="" revision="6873"
 Plugin Directory: Attempt to avoid storing invalid dates in postmeta for
 status changes. If the post modified date isn't available, assume now.

 I'm not entirely sure `post_modified_gmt` is the correct field to use
 here, I suspect `post_modified` would be better, or perhaps even just
 using `time()` in all cases, but once again, I'm not sure why
 post_modified_gmt was used here instead.

 Fixes #3511.
 }}}

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/3511#comment:1>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list