Opened 8 years ago
Closed 5 years ago
#41227 closed defect (bug) (duplicate)
Ability to pass post_modified and post_modified_gmt to wp_insert_post
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch has-unit-tests 2nd-opinion |
Focuses: | Cc: |
Description
It is hard-coded that post_modified and post_modified_gmt will be current time or post_date. But sometimes it can be needed to have custom date passed to wp_insert_post/wp_update_post.
Attachments (2)
Change History (8)
#2
@
7 years ago
- Keywords has-unit-tests added
- Type changed from enhancement to defect (bug)
- Version set to trunk
#3
@
7 years ago
- Milestone changed from Awaiting Review to 5.0
- Owner set to johnbillion
- Status changed from new to reviewing
- Version trunk deleted
Note: See
TracTickets for help on using
tickets.
I believe this issue should actually be classified as a bug. According to the docblock for
wp_insert_post()
, the values forpost_modified
andpost_modified_gmt
should already be accepted.I'm uploading a refreshed patch that includes unit tests.