Updating Attachments will always set post_modified[_gmt] to the post_date[_gmt]
|Reported by:||shawnparker||Owned by:|
When updating an attachment the post_modified and post_modified_gmt are always set to post_date and post_date_gmt respectively.
Is there a specific reason for this or can we allow attachments to properly set a modified time?
Attached is a proposed patch (which just copies code directly from wp_insert_post).
Change History (7)
- Keywords has-patch added; attachment update post_date removed
- Milestone changed from Awaiting Review to Future Release
- Type changed from defect (bug) to enhancement