Changeset 3090

Show
Ignore:
Timestamp:
11/15/05 00:00:26 (3 years ago)
Author:
ryan
Message:

Fix [3074] commit so that draft->publish transitions up date the timestamp.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions-post.php

    r3074 r3090  
    386386        $post_cats = $post['post_category']; 
    387387 
    388     // Merge old and new fields with new fields overwriting old ones. 
    389     $postarr = array_merge($post, $postarr); 
    390     $postarr['post_category'] = $post_cats;  
    391  
    392388    // Drafts shouldn't be assigned a date unless explicitly done so by the user 
    393389    if ( 'draft' == $post['post_status'] && empty($postarr['edit_date']) && empty($postarr['post_date']) &&