Changeset 578847
- Timestamp:
- 07/29/2012 08:36:21 PM (14 years ago)
- Location:
- seo-blogger-to-wordpress-301-redirector
- Files:
-
- 10 added
- 2 edited
-
tags/0.4.6 (added)
-
tags/0.4.6/images (added)
-
tags/0.4.6/images/delete.png (added)
-
tags/0.4.6/images/download.png (added)
-
tags/0.4.6/images/help.png (added)
-
tags/0.4.6/images/like.png (added)
-
tags/0.4.6/images/template.png (added)
-
tags/0.4.6/lib.php (added)
-
tags/0.4.6/readme.txt (added)
-
tags/0.4.6/seo-blogger-to-wordpress.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/seo-blogger-to-wordpress.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seo-blogger-to-wordpress-301-redirector/trunk/readme.txt
r578758 r578847 5 5 Requires at least: 2.6 6 6 Tested up to: 3.2.1 7 Stable tag: 0.4. 57 Stable tag: 0.4.6 8 8 9 9 This plugin will 301 redirect all incoming traffic from your Blogger account to your newly setup Wordpress account. Move from Blogger to wordpress with great ease. … … 69 69 == Upgrade Notice == 70 70 71 = 0.4. 5=72 Minor bug fix.71 = 0.4.6 = 72 Improvements on the importer. -
seo-blogger-to-wordpress-301-redirector/trunk/seo-blogger-to-wordpress.php
r578758 r578847 4 4 Plugin URI: http://suhastech.com/seo-blogger-to-wordpress 5 5 Description: This plugin will 301 redirect all incoming traffic from your Blogger account to your newly setup Wordpress account. Please read the documentation at suhastech.com/seo-blogger-to-wordpress before you continue. 6 Version: 0.4. 56 Version: 0.4.6 7 7 Author: Suhas Sharma 8 8 Author URI: http://suhastech.com … … 201 201 if ((preg_match("/photobucket.com/i", $replace[0])) || (preg_match("/blogspot.com/i", $replace[0])) || (preg_match("/ggpht.com/i", $replace[0])) || (preg_match("/googleusercontent.com/i", $replace[0]))) 202 202 { 203 $upload = media_sideload_image(str_replace("+","%2B",urldecode( trim($replace[0]))), $post->ID);203 $upload = media_sideload_image(str_replace("+","%2B",urldecode(str_replace("+","%2B",trim($replace[0])))), $post->ID); 204 204 205 205 … … 211 211 $new_content = str_replace($original, $newurl ,$new_content); 212 212 endforeach; 213 214 } 215 $count++; 213 214 $count++; 215 }else 216 { 217 echo "<b>Error</b> with ".$replace[0] ; 218 echo " ".$upload->get_error_message()."<br />"; 219 } 216 220 217 221 … … 234 238 if ((preg_match("/photobucket.com/i", $replace[0])) || (preg_match("/blogspot.com/i", $replace[0])) || (preg_match("/ggpht.com/i", $replace[0])) || (preg_match("/googleusercontent.com/i", $replace[0]))) 235 239 { 236 $upload = media_sideload_image(str_replace("+","%2B",urldecode( trim($replace[0]))), $post->ID);240 $upload = media_sideload_image(str_replace("+","%2B",urldecode(str_replace("+","%2B",trim($replace[0])))), $post->ID); 237 241 238 242 if ( !is_wp_error($upload) ) { … … 245 249 endforeach; 246 250 247 }248 251 $count++; 252 }else 253 { 254 echo "<b>Error</b> with ".$replace[0] ; 255 echo " ".$upload->get_error_message()."<br />"; 256 } 249 257 250 258
Note: See TracChangeset
for help on using the changeset viewer.