Version Description
- Fix for tracking images being added by Blogger to non-authenticated feeds http://core.trac.wordpress.org/ticket/17623
Download this release
Release Info
Developer | nacin |
Plugin | Blogger Importer |
Version | 0.4 |
Comparing to | |
See all releases |
Code changes from version 0.3 to 0.4
- blogger-importer.php +12 -7
- languages/blogger-importer.pot +42 -49
- readme.txt +13 -6
blogger-importer.php
CHANGED
@@ -5,9 +5,9 @@ Plugin URI: http://wordpress.org/extend/plugins/blogger-importer/
|
|
5 |
Description: Import posts, comments, tags, and attachments from a Blogger blog.
|
6 |
Author: wordpressdotorg
|
7 |
Author URI: http://wordpress.org/
|
8 |
-
Version: 0.
|
9 |
-
Stable tag: 0.
|
10 |
-
License: GPL
|
11 |
*/
|
12 |
|
13 |
if ( !defined('WP_LOAD_IMPORTERS') )
|
@@ -185,8 +185,13 @@ class Blogger_Import extends WP_Importer {
|
|
185 |
if ( $tag['attributes']['REL'] == 'alternate' && $tag['attributes']['TYPE'] == 'text/html' ) {
|
186 |
$parts = parse_url( $tag['attributes']['HREF'] );
|
187 |
$blog['host'] = $parts['host'];
|
188 |
-
} elseif ( $tag['attributes']['REL'] == 'edit' )
|
189 |
$blog['gateway'] = $tag['attributes']['HREF'];
|
|
|
|
|
|
|
|
|
|
|
190 |
}
|
191 |
++$i;
|
192 |
}
|
@@ -425,12 +430,12 @@ class Blogger_Import extends WP_Importer {
|
|
425 |
do {
|
426 |
$index = $struct = $entries = array();
|
427 |
$headers = array(
|
428 |
-
"GET
|
429 |
-
"Host: {$blog['
|
430 |
"Authorization: AuthSub token=\"$this->token\""
|
431 |
);
|
432 |
$request = join( "\r\n", $headers ) . "\r\n\r\n";
|
433 |
-
$sock = $this->_get_blogger_sock( $blog['
|
434 |
if ( ! $sock ) return; // TODO: Error handling
|
435 |
$response = $this->_txrx( $sock, $request );
|
436 |
|
5 |
Description: Import posts, comments, tags, and attachments from a Blogger blog.
|
6 |
Author: wordpressdotorg
|
7 |
Author URI: http://wordpress.org/
|
8 |
+
Version: 0.4
|
9 |
+
Stable tag: 0.4
|
10 |
+
License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
11 |
*/
|
12 |
|
13 |
if ( !defined('WP_LOAD_IMPORTERS') )
|
185 |
if ( $tag['attributes']['REL'] == 'alternate' && $tag['attributes']['TYPE'] == 'text/html' ) {
|
186 |
$parts = parse_url( $tag['attributes']['HREF'] );
|
187 |
$blog['host'] = $parts['host'];
|
188 |
+
} elseif ( $tag['attributes']['REL'] == 'edit' ) {
|
189 |
$blog['gateway'] = $tag['attributes']['HREF'];
|
190 |
+
} elseif ( $tag['attributes']['REL'] == 'http://schemas.google.com/g/2005#post' ) {
|
191 |
+
$parts = parse_url( $tag['attributes']['HREF'] );
|
192 |
+
$blog['posts_host'] = $parts['host'];
|
193 |
+
$blog['posts_path'] = $parts['path'];
|
194 |
+
}
|
195 |
}
|
196 |
++$i;
|
197 |
}
|
430 |
do {
|
431 |
$index = $struct = $entries = array();
|
432 |
$headers = array(
|
433 |
+
"GET {$blog['posts_path']}?$query HTTP/1.0",
|
434 |
+
"Host: {$blog['posts_host']}",
|
435 |
"Authorization: AuthSub token=\"$this->token\""
|
436 |
);
|
437 |
$request = join( "\r\n", $headers ) . "\r\n\r\n";
|
438 |
+
$sock = $this->_get_blogger_sock( $blog['posts_host'] );
|
439 |
if ( ! $sock ) return; // TODO: Error handling
|
440 |
$response = $this->_txrx( $sock, $request );
|
441 |
|
languages/blogger-importer.pot
CHANGED
@@ -1,20 +1,16 @@
|
|
1 |
-
#
|
2 |
-
# Copyright (C) 2010 wordpressdotorg
|
3 |
# This file is distributed under the same license as the Blogger Importer package.
|
4 |
-
# FIRST AUTHOR <EMAIL@ADDRESS>, 2010.
|
5 |
-
#
|
6 |
-
#, fuzzy
|
7 |
msgid ""
|
8 |
msgstr ""
|
9 |
-
"Project-Id-Version: Blogger Importer 0.
|
10 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/blogger-importer\n"
|
11 |
-
"POT-Creation-Date:
|
|
|
|
|
|
|
12 |
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
-
"MIME-Version: 1.0\n"
|
16 |
-
"Content-Type: text/plain; charset=utf-8\n"
|
17 |
-
"Content-Transfer-Encoding: 8bit\n"
|
18 |
|
19 |
#: blogger-importer.php:68
|
20 |
msgid "Import Blogger"
|
@@ -59,77 +55,76 @@ msgstr ""
|
|
59 |
msgid "We were not able to gain access to your account. Try starting over."
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: blogger-importer.php:
|
63 |
msgid "No blogs found"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: blogger-importer.php:
|
67 |
msgid ""
|
68 |
"We were able to log in but there were no blogs. Try a different account next "
|
69 |
"time."
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: blogger-importer.php:
|
73 |
msgid "Import"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: blogger-importer.php:
|
77 |
msgid "Continue"
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: blogger-importer.php:
|
81 |
msgid "Importing..."
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: blogger-importer.php:
|
85 |
msgid "Set Authors"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: blogger-importer.php:
|
89 |
msgid "Preparing author mapping form..."
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: blogger-importer.php:
|
93 |
msgid "Final Step: Author Mapping"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: blogger-importer.php:
|
97 |
msgid "Nothing was imported. Had you already imported this blog?"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: blogger-importer.php:
|
101 |
msgid "Blogger Blogs"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: blogger-importer.php:
|
105 |
msgid "Blog Name"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: blogger-importer.php:
|
109 |
msgid "Blog URL"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: blogger-importer.php:
|
113 |
msgid "The Magic Button"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: blogger-importer.php:
|
117 |
msgid "Posts"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: blogger-importer.php:
|
121 |
msgid "Comments"
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: blogger-importer.php:
|
125 |
msgid ""
|
126 |
"This feature requires Javascript but it seems to be disabled. Please enable "
|
127 |
"Javascript and then reload this page. Don’t worry, you can turn it "
|
128 |
"back off when you’re done."
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: blogger-importer.php:
|
132 |
-
#, php-format
|
133 |
msgid ""
|
134 |
"All posts were imported with the current user as author. Use this form to "
|
135 |
"move each Blogger user’s posts to a different WordPress user. You may "
|
@@ -138,64 +133,62 @@ msgid ""
|
|
138 |
"activate the “Restart” function below."
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: blogger-importer.php:
|
142 |
msgid "Author mapping"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: blogger-importer.php:
|
146 |
msgid "Blogger username"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: blogger-importer.php:
|
150 |
msgid "WordPress login"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: blogger-importer.php:
|
154 |
msgid "Save Changes"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: blogger-importer.php:
|
158 |
msgid "Could not connect to https://www.google.com"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: blogger-importer.php:
|
162 |
msgid ""
|
163 |
"There was a problem opening a secure connection to Google. This is what went "
|
164 |
"wrong:"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: blogger-importer.php:
|
168 |
-
#, php-format
|
169 |
msgid "Could not connect to %s"
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: blogger-importer.php:
|
173 |
msgid ""
|
174 |
"There was a problem opening a connection to Blogger. This is what went wrong:"
|
175 |
msgstr ""
|
176 |
|
177 |
-
#: blogger-importer.php:
|
178 |
msgid "Congratulations!"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: blogger-importer.php:
|
182 |
msgid ""
|
183 |
"Now that you have imported your Blogger blog into WordPress, what are you "
|
184 |
"going to do? Here are some suggestions:"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: blogger-importer.php:
|
188 |
msgid "That was hard work! Take a break."
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: blogger-importer.php:
|
192 |
msgid ""
|
193 |
"In case you haven’t done it already, you can import the posts from "
|
194 |
"your other blogs:"
|
195 |
msgstr ""
|
196 |
|
197 |
-
#: blogger-importer.php:
|
198 |
-
#, php-format
|
199 |
msgid ""
|
200 |
"Go to <a href=\"%s\" target=\"%s\">Authors & Users</a>, where you can "
|
201 |
"modify the new user(s) or delete them. If you want to make all of the "
|
@@ -203,15 +196,15 @@ msgid ""
|
|
203 |
"authors."
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: blogger-importer.php:
|
207 |
msgid "For security, click the link below to reset this importer."
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: blogger-importer.php:
|
211 |
msgid "Restart"
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: blogger-importer.php:
|
215 |
msgid ""
|
216 |
"We have saved some information about your Blogger account in your WordPress "
|
217 |
"database. Clearing this information will allow you to start over. Restarting "
|
@@ -219,15 +212,15 @@ msgid ""
|
|
219 |
"import a blog, duplicate posts and comments will be skipped."
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: blogger-importer.php:
|
223 |
msgid "Clear account information"
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: blogger-importer.php:
|
227 |
msgid "Blogger"
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: blogger-importer.php:
|
231 |
msgid "Import posts, comments, and users from a Blogger blog."
|
232 |
msgstr ""
|
233 |
|
1 |
+
# Copyright (C) 2010 Blogger Importer
|
|
|
2 |
# This file is distributed under the same license as the Blogger Importer package.
|
|
|
|
|
|
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Blogger Importer 0.4\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/blogger-importer\n"
|
7 |
+
"POT-Creation-Date: 2011-06-10 14:30:39+00:00\n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
|
|
|
|
|
14 |
|
15 |
#: blogger-importer.php:68
|
16 |
msgid "Import Blogger"
|
55 |
msgid "We were not able to gain access to your account. Try starting over."
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: blogger-importer.php:208
|
59 |
msgid "No blogs found"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: blogger-importer.php:209
|
63 |
msgid ""
|
64 |
"We were able to log in but there were no blogs. Try a different account next "
|
65 |
"time."
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: blogger-importer.php:216
|
69 |
msgid "Import"
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: blogger-importer.php:217
|
73 |
msgid "Continue"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: blogger-importer.php:218
|
77 |
msgid "Importing..."
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: blogger-importer.php:219
|
81 |
msgid "Set Authors"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: blogger-importer.php:220
|
85 |
msgid "Preparing author mapping form..."
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: blogger-importer.php:221
|
89 |
msgid "Final Step: Author Mapping"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: blogger-importer.php:222
|
93 |
msgid "Nothing was imported. Had you already imported this blog?"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: blogger-importer.php:224
|
97 |
msgid "Blogger Blogs"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: blogger-importer.php:225
|
101 |
msgid "Blog Name"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: blogger-importer.php:226
|
105 |
msgid "Blog URL"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: blogger-importer.php:227
|
109 |
msgid "The Magic Button"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: blogger-importer.php:228
|
113 |
msgid "Posts"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: blogger-importer.php:229
|
117 |
msgid "Comments"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: blogger-importer.php:230
|
121 |
msgid ""
|
122 |
"This feature requires Javascript but it seems to be disabled. Please enable "
|
123 |
"Javascript and then reload this page. Don’t worry, you can turn it "
|
124 |
"back off when you’re done."
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: blogger-importer.php:685
|
|
|
128 |
msgid ""
|
129 |
"All posts were imported with the current user as author. Use this form to "
|
130 |
"move each Blogger user’s posts to a different WordPress user. You may "
|
133 |
"activate the “Restart” function below."
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: blogger-importer.php:686
|
137 |
msgid "Author mapping"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: blogger-importer.php:688
|
141 |
msgid "Blogger username"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: blogger-importer.php:689
|
145 |
msgid "WordPress login"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: blogger-importer.php:690
|
149 |
msgid "Save Changes"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: blogger-importer.php:747
|
153 |
msgid "Could not connect to https://www.google.com"
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: blogger-importer.php:748
|
157 |
msgid ""
|
158 |
"There was a problem opening a secure connection to Google. This is what went "
|
159 |
"wrong:"
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: blogger-importer.php:759
|
|
|
163 |
msgid "Could not connect to %s"
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: blogger-importer.php:760
|
167 |
msgid ""
|
168 |
"There was a problem opening a connection to Blogger. This is what went wrong:"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: blogger-importer.php:826
|
172 |
msgid "Congratulations!"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: blogger-importer.php:826
|
176 |
msgid ""
|
177 |
"Now that you have imported your Blogger blog into WordPress, what are you "
|
178 |
"going to do? Here are some suggestions:"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: blogger-importer.php:826
|
182 |
msgid "That was hard work! Take a break."
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: blogger-importer.php:828
|
186 |
msgid ""
|
187 |
"In case you haven’t done it already, you can import the posts from "
|
188 |
"your other blogs:"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: blogger-importer.php:830
|
|
|
192 |
msgid ""
|
193 |
"Go to <a href=\"%s\" target=\"%s\">Authors & Users</a>, where you can "
|
194 |
"modify the new user(s) or delete them. If you want to make all of the "
|
196 |
"authors."
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: blogger-importer.php:831
|
200 |
msgid "For security, click the link below to reset this importer."
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: blogger-importer.php:862
|
204 |
msgid "Restart"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: blogger-importer.php:863
|
208 |
msgid ""
|
209 |
"We have saved some information about your Blogger account in your WordPress "
|
210 |
"database. Clearing this information will allow you to start over. Restarting "
|
212 |
"import a blog, duplicate posts and comments will be skipped."
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: blogger-importer.php:864
|
216 |
msgid "Clear account information"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: blogger-importer.php:914
|
220 |
msgid "Blogger"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: blogger-importer.php:914
|
224 |
msgid "Import posts, comments, and users from a Blogger blog."
|
225 |
msgstr ""
|
226 |
|
readme.txt
CHANGED
@@ -3,14 +3,14 @@ Contributors: wordpressdotorg
|
|
3 |
Donate link:
|
4 |
Tags: importer, blogger
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 0.
|
8 |
|
9 |
Import posts, comments, and users from a Blogger blog.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
Import posts, comments, and users from a Blogger
|
14 |
|
15 |
== Installation ==
|
16 |
|
@@ -24,13 +24,20 @@ Import posts, comments, and users from a Blogger blog.
|
|
24 |
|
25 |
== Changelog ==
|
26 |
|
27 |
-
= 0.
|
28 |
-
*
|
|
|
29 |
= 0.3 =
|
30 |
* Bugfix for 403 Invalid AuthSub Token http://core.trac.wordpress.org/ticket/14629
|
31 |
|
|
|
|
|
|
|
32 |
== Upgrade Notice ==
|
33 |
|
|
|
|
|
|
|
34 |
= 0.3 =
|
35 |
-
Bugfix for 403 Invalid AuthSub Token
|
36 |
|
3 |
Donate link:
|
4 |
Tags: importer, blogger
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 3.4
|
7 |
+
Stable tag: 0.4
|
8 |
|
9 |
Import posts, comments, and users from a Blogger blog.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
This is the Blogger Importer available from the WordPress Tools->Import screen. It imports posts, comments, and users from a Blogger site into a WordPress installation.
|
14 |
|
15 |
== Installation ==
|
16 |
|
24 |
|
25 |
== Changelog ==
|
26 |
|
27 |
+
= 0.4 =
|
28 |
+
* Fix for tracking images being added by Blogger to non-authenticated feeds http://core.trac.wordpress.org/ticket/17623
|
29 |
+
|
30 |
= 0.3 =
|
31 |
* Bugfix for 403 Invalid AuthSub Token http://core.trac.wordpress.org/ticket/14629
|
32 |
|
33 |
+
= 0.1 =
|
34 |
+
* Initial release
|
35 |
+
|
36 |
== Upgrade Notice ==
|
37 |
|
38 |
+
= 0.4 =
|
39 |
+
* Fix for tracking images being added by Blogger to non-authenticated feeds http://core.trac.wordpress.org/ticket/17623
|
40 |
+
|
41 |
= 0.3 =
|
42 |
+
* Bugfix for 403 Invalid AuthSub Token
|
43 |
|