mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 00:52:55 +01:00
Fix [3074] commit so that draft->publish transitions up date the timestamp.
git-svn-id: https://develop.svn.wordpress.org/trunk@3090 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1663e2088e
commit
1a7354a608
@ -385,10 +385,6 @@ function wp_update_post($postarr = array()) {
|
||||
else
|
||||
$post_cats = $post['post_category'];
|
||||
|
||||
// Merge old and new fields with new fields overwriting old ones.
|
||||
$postarr = array_merge($post, $postarr);
|
||||
$postarr['post_category'] = $post_cats;
|
||||
|
||||
// Drafts shouldn't be assigned a date unless explicitly done so by the user
|
||||
if ( 'draft' == $post['post_status'] && empty($postarr['edit_date']) && empty($postarr['post_date']) &&
|
||||
('0000-00-00 00:00:00' == $post['post_date']) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user