[wp-trac] [WordPress Trac] #6527: Publishing directly sets wrong date on 'post_date_gmt'
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 31 05:25:33 UTC 2010
#6527: Publishing directly sets wrong date on 'post_date_gmt'
------------------------------+---------------------------------------------
Reporter: arabek | Owner: ryan
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.6.1
Component: General | Version: 2.9.2
Severity: critical | Resolution:
Keywords: has-patch tested |
------------------------------+---------------------------------------------
Changes (by bennebw):
* cc: bennebw (added)
* priority: highest omg bbq => normal
* status: closed => reopened
* resolution: fixed =>
* version: 2.5 => 2.9.2
Comment:
This problem can be reproduced in 2.9.2 by using wp_publish_post() on a
previously unpublished post. I found that this problem still exists
because my plugin creates new posts, saved as pending, on image uploads
submitted through blog front-end. The plugin has an admin photo manager
that allows admins to publish the created posts via an ajax call. This
uses wp_publish_post(). The posts that are published with wp_publish_post
show up in Feeds with a date of 00:00:00 0000 (or December 31, 1969).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/6527#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list