[wp-trac] [WordPress Trac] #15309: Updating Attachments will always set post_modified[_gmt] to the post_date[_gmt]

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 3 17:40:32 UTC 2010


#15309: Updating Attachments will always set post_modified[_gmt] to the
post_date[_gmt]
--------------------------+-------------------------------------------------
 Reporter:  shawnparker   |       Owner:                               
     Type:  defect (bug)  |      Status:  new                          
 Priority:  normal        |   Milestone:  Awaiting Review              
Component:  Media         |     Version:                               
 Severity:  normal        |    Keywords:  attachment, update, post_date
--------------------------+-------------------------------------------------
 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`).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15309>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list