[wp-cvs] wordpress/wp-admin import-blogger.php,1.14,1.15
Matthew Mullenweg
saxmatt at users.sourceforge.net
Fri Feb 11 02:44:41 GMT 2005
Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21543/wp-admin
Modified Files:
import-blogger.php
Log Message:
Blogger import fix - http://mosquito.wordpress.org/view.php?id=365
Index: import-blogger.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/import-blogger.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** import-blogger.php 15 Jun 2004 23:24:35 -0000 1.14
--- import-blogger.php 11 Feb 2005 02:44:38 -0000 1.15
***************
*** 51,55 ****
$posts = explode('<wordpresspost>', $archive);
! for ($i = 1; $i < (count($posts)+1); $i = $i + 1) {
$postinfo = explode('|||', $posts[$i]);
--- 51,55 ----
$posts = explode('<wordpresspost>', $archive);
! for ($i = 1; $i < count($posts); $i = $i + 1) {
$postinfo = explode('|||', $posts[$i]);
***************
*** 120,123 ****
--- 120,125 ----
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";
***************
*** 150,157 ****
}
- /* 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();
?>
--- 152,155 ----
More information about the cvs
mailing list