From 2b6348978ec434e2fa4114085783cf9ada097b22 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 3 Jul 2008 17:00:59 +0000 Subject: WP Merge to rev 8249 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1347 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/includes/post.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wp-admin/includes/post.php') diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index f98b9de..a34aeab 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -93,7 +93,10 @@ function _wp_translate_postdata( $update = false ) { $hh = $_POST['hh']; $mn = $_POST['mn']; $ss = $_POST['ss']; + $aa = ($aa <= 0 ) ? date('Y') : $aa; + $mm = ($mm <= 0 ) ? date('n') : $mm; $jj = ($jj > 31 ) ? 31 : $jj; + $jj = ($jj <= 0 ) ? date('j') : $jj; $hh = ($hh > 23 ) ? $hh -24 : $hh; $mn = ($mn > 59 ) ? $mn -60 : $mn; $ss = ($ss > 59 ) ? $ss -60 : $ss; -- cgit