[wp-trac] [WordPress Trac] #22063: wp_insert_attachment misses proper post_date_gmt filling

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 1 00:49:53 UTC 2012


#22063: wp_insert_attachment misses proper post_date_gmt filling
-------------------------+------------------------
 Reporter:  thomask      |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Upload       |     Version:  3.4.2
 Severity:  normal       |  Resolution:  duplicate
 Keywords:               |
-------------------------+------------------------
Changes (by dd32):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 > wouldn't be better to have one function (wp_insert_post) and make
 wp_insert_attachment just somehow extend it for attachments?

 Yup: #21963

 That de-duplication will also fix this issue though, so closing as a
 duplicate of that

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22063#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list