Blogger Importer - Version 0.6

Version Description

  • Security improvements.
Download this release

Release Info

Developer dllh
Plugin Icon 128x128 Blogger Importer
Version 0.6
Comparing to
See all releases

Code changes from version 0.5 to 0.6

blogger-importer-blogitem.php CHANGED
@@ -10,7 +10,7 @@
10
  *
11
  */
12
 
13
- define('SIMPLEPIE_NAMESPACE_ATOMPUB', 'http://www.w3.org/2007/app');
14
  define('SIMPLEPIE_NAMESPACE_GEOTAG', 'http://www.georss.org/georss');
15
 
16
  /**
10
  *
11
  */
12
 
13
+ define('SIMPLEPIE_NAMESPACE_ATOMPUB', 'http://purl.org/atom/app#');
14
  define('SIMPLEPIE_NAMESPACE_GEOTAG', 'http://www.georss.org/georss');
15
 
16
  /**
blogger-importer.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://wordpress.org/extend/plugins/blogger-importer/
5
  Description: Import posts, comments, and tags from a Blogger blog and migrate authors to Wordpress users.
6
  Author: wordpressdotorg
7
  Author URI: http://wordpress.org/
8
- Version: 0.5
9
  License: GPLv2
10
  License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
11
  */
@@ -929,9 +929,12 @@ if (class_exists('WP_Importer'))
929
  global $wpdb;
930
  $options = get_option('blogger_importer');
931
 
932
- delete_option('blogger_importer');
933
- $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = 'blogger_author'");
 
 
934
  wp_redirect('?import=blogger');
 
935
  }
936
 
937
  // Step 9: Congratulate the user
@@ -983,7 +986,9 @@ if (class_exists('WP_Importer'))
983
  $message = __('We have saved some information about your Blogger account in your WordPress database. Clearing this information will allow you to start over. Restarting will not affect any posts you have already imported. If you attempt to re-import a blog, duplicate posts and comments will be skipped.',
984
  'blogger-importer');
985
  $submit = esc_attr__('Clear account information', 'blogger-importer');
986
- echo "<div class='wrap'><h2>$restart</h2><p>$message</p><form method='post' action='?import=blogger&amp;noheader=true'><p class='submit' style='text-align:left;'><input type='submit' class='button' value='$submit' name='restart' /></p></form></div>";
 
 
987
  }
988
  }
989
 
5
  Description: Import posts, comments, and tags from a Blogger blog and migrate authors to Wordpress users.
6
  Author: wordpressdotorg
7
  Author URI: http://wordpress.org/
8
+ Version: 0.6
9
  License: GPLv2
10
  License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
11
  */
929
  global $wpdb;
930
  $options = get_option('blogger_importer');
931
 
932
+ if ( check_admin_referer( 'clear-blogger-importer', 'clear-blogger-importer-nonce' ) ) {
933
+ delete_option('blogger_importer');
934
+ $wpdb->query("DELETE FROM $wpdb->postmeta WHERE meta_key = 'blogger_author'");
935
+ }
936
  wp_redirect('?import=blogger');
937
+ exit;
938
  }
939
 
940
  // Step 9: Congratulate the user
986
  $message = __('We have saved some information about your Blogger account in your WordPress database. Clearing this information will allow you to start over. Restarting will not affect any posts you have already imported. If you attempt to re-import a blog, duplicate posts and comments will be skipped.',
987
  'blogger-importer');
988
  $submit = esc_attr__('Clear account information', 'blogger-importer');
989
+ echo "<div class='wrap'><h2>$restart</h2><p>$message</p><form method='post' action='?import=blogger&amp;noheader=true'>";
990
+ wp_nonce_field( 'clear-blogger-importer', 'clear-blogger-importer-nonce' );
991
+ echo "<p class='submit' style='text-align:left;'><input type='submit' class='button' value='$submit' name='restart' /></p></form></div>";
992
  }
993
  }
994
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wordpressdotorg, Otto42, Workshopshed, SergeyBiryukov, rmccue
3
  Donate link:
4
  Tags: importer, blogger
5
  Requires at least: 3.0
6
- Tested up to: 3.4
7
- Stable tag: 0.5
8
  License: GPLv2 or later
9
 
10
  Imports posts, comments, and categories (blogger tags) from a Blogger blog then migrates authors to Wordpress users.
@@ -95,6 +95,9 @@ The importer uses the SimplePie classes to process the data, these in turn use a
95
 
96
  == Changelog ==
97
 
 
 
 
98
  = 0.5 =
99
  * Merged in fix by SergeyBiryukov http://core.trac.wordpress.org/ticket/16012
100
  * Merged in rmccue change to get_total_results to also use SimplePie from http://core.trac.wordpress.org/attachment/ticket/7652/7652-blogger.diff
3
  Donate link:
4
  Tags: importer, blogger
5
  Requires at least: 3.0
6
+ Tested up to: 3.6
7
+ Stable tag: 0.6
8
  License: GPLv2 or later
9
 
10
  Imports posts, comments, and categories (blogger tags) from a Blogger blog then migrates authors to Wordpress users.
95
 
96
  == Changelog ==
97
 
98
+ = 0.6 =
99
+ * Security improvements.
100
+
101
  = 0.5 =
102
  * Merged in fix by SergeyBiryukov http://core.trac.wordpress.org/ticket/16012
103
  * Merged in rmccue change to get_total_results to also use SimplePie from http://core.trac.wordpress.org/attachment/ticket/7652/7652-blogger.diff