[wp-trac] [WordPress Trac] #21987: function get_post_time - if gmt (unset)
WordPress Trac
noreply at wordpress.org
Wed Dec 5 08:47:55 UTC 2012
#21987: function get_post_time - if gmt (unset)
-------------------------------------+------------------------------
Reporter: soficgr | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version:
Severity: minor | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+------------------------------
Comment (by soficgr):
I forgot to say that, when we save type we have this info at $_POST
{{{
array (size=83)
'post_status' => string 'draft'
'post_type' => string 'post'
.....
'original_post_status' => string 'draft'
....
}}}
if the original_post_status is different from the post_status then we have
change status.
we have everything except post_date_gmt (is empty)... because the wp don't
set for not publish status.
only when we have new type (auto-draft - insert). we don't have at $_POST
original_post_status, post_date, post_date_gmt, post_modified,
post_modified_gmt.
{{{
array (size=15)
'post_status' => string 'auto-draft'
'post_type' => string 'post'
.....
}}}
and this is definitely correct.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21987#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list