[wp-trac] [WordPress Trac] #15946: post_date_gmt ignored in wp_insert_post()

WordPress Trac noreply at wordpress.org
Fri Oct 2 04:35:35 UTC 2015


#15946: post_date_gmt ignored in wp_insert_post()
------------------------------------+-----------------------------
 Reporter:  kawauso                 |       Owner:  wonderboymusic
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:  4.4
Component:  Posts, Post Types       |     Version:  3.1
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"34762"]:
 {{{
 #!CommitTicketReference repository="" revision="34762"
 Posts: In `wp_insert_post()`, don't set `post_date` to current time if it
 can be derived from a passed value for `post_date_gmt`.

 Adds unit tests.

 Props oso96_2000, kawauso.
 Fixes #15946.
 }}}

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


More information about the wp-trac mailing list