WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#15946 new defect (bug)

post_date_gmt ignored in wp_insert_post()

Reported by: kawauso Owned by:
Priority: normal Milestone: Future Release
Component: General Version: 3.1
Severity: normal Keywords: has-patch
Cc:

Description

If a post is inserted with post_date_gmt set and post_date not, post_date defaults to the current date/time, rather than being generated from post_date_gmt

Attachments (1)

15946.diff (1.2 KB) - added by kawauso 2 years ago.
Generate post date from GMT if present and remove redundant part of if() clause

Download all attachments as: .zip

Change History (2)

kawauso2 years ago

Generate post date from GMT if present and remove redundant part of if() clause

comment:1 nacin2 years ago

  • Milestone changed from Awaiting Review to Future Release
Note: See TracTickets for help on using tickets.