git-svn-id: http://svn.automattic.com/wordpress/trunk@2265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-02-11 02:44:38 +00:00
parent 83f85c76ac
commit dd54ce2ad6
1 changed files with 3 additions and 5 deletions

View File

@ -50,7 +50,7 @@ case "step1":
$posts = explode('<wordpresspost>', $archive);
for ($i = 1; $i < (count($posts)+1); $i = $i + 1) {
for ($i = 1; $i < count($posts); $i = $i + 1) {
$postinfo = explode('|||', $posts[$i]);
$post_date = $postinfo[0];
@ -119,6 +119,8 @@ case "step1":
if (($post_date[2] == 'PM') && ($posthour != '12'))
$posthour = $posthour + 12;
else if (($post_date[2] == 'AM') && ($posthour == '12'))
$posthour = '00';
$post_date = "$postyear-$postmonth-$postday $posthour:$postminute:$postsecond";
@ -149,10 +151,6 @@ case "step1":
}}
}
/* we've still got a bug that adds some empty posts with the date 0000-00-00 00:00:00
here's the bugfix: */
$result = $wpdb->query("DELETE FROM $wpdb->posts WHERE post_date=\"0000-00-00 00:00:00\"");
upgrade_all();
?>
</ul>