Opened 16 years ago
Closed 11 years ago
#15946 closed defect (bug) (fixed)
post_date_gmt ignored in wp_insert_post()
| Reported by: | kawauso | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Posts, Post Types | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch dev-feedback |
| Cc: | Focuses: |
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
@
12 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Generate post date from GMT if present and remove redundant part of if() clause