Opened 14 years ago
Closed 9 years ago
#15946 closed defect (bug) (fixed)
post_date_gmt ignored in wp_insert_post()
Reported by: | kawauso | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Posts, Post Types | Keywords: | has-patch dev-feedback |
Focuses: | 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 (3)
Change History (9)
#3
@
11 years ago
- Keywords dev-feedback added
Hello @kawauso! Thanks for the patch, sorry fort aking too long to respond. I refreshed it and added a unit test.
Note: See
TracTickets for help on using
tickets.
Generate post date from GMT if present and remove redundant part of if() clause