diff options
Diffstat (limited to 'wp-admin/includes/post.php')
| -rw-r--r-- | wp-admin/includes/post.php | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
