[wp-trac] [WordPress Trac] #22350: Restored Drafts Shouldn't Have a Publication Date

WordPress Trac noreply at wordpress.org
Sat Jan 19 00:00:41 UTC 2013


#22350: Restored Drafts Shouldn't Have a Publication Date
----------------------------+------------------------------
 Reporter:  miqrogroove     |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Trash           |     Version:  3.4.2
 Severity:  normal          |  Resolution:
 Keywords:  editorial-flow  |
----------------------------+------------------------------

Comment (by danielbachhuber):

 The timestamp is set because of this block:

 {{{
         if ( empty($post_date_gmt) || '0000-00-00 00:00:00' ==
 $post_date_gmt ) {
                 if ( !in_array( $post_status, array( 'draft', 'pending',
 'auto-draft' ) ) )
                         $post_date_gmt = get_gmt_from_date($post_date);
                 else
                         $post_date_gmt = '0000-00-00 00:00:00';
         }
 }}}

 Similarly, if you trash a 'draft' and haven't yet set a slug / post_name,
 the slug / post_name will be set when you restore it from trash.

 Related #18362

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


More information about the wp-trac mailing list