Plugin Directory

Changeset 469873


Ignore:
Timestamp:
12/01/2011 02:15:33 PM (14 years ago)
Author:
suhas93
Message:

taggin 0.3.3

Location:
seo-blogger-to-wordpress-301-redirector/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • seo-blogger-to-wordpress-301-redirector/trunk/readme.txt

    r443101 r469873  
    55Requires at least: 2.6
    66Tested up to: 3.2.1
    7 Stable tag: 0.3.2
     7Stable tag: 0.3.3
    88
    99This 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.
     
    6868== Upgrade Notice ==
    6969
    70 = 0.3.2 =
    71 Added the much awaited feature that'll add all the images to your media library
     70= 0.3.3 =
     71Bug Fixes
  • seo-blogger-to-wordpress-301-redirector/trunk/seo-blogger-to-wordpress.php

    r443101 r469873  
    44Plugin URI: http://suhastech.com/seo-blogger-to-wordpress
    55Description: 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.3.2
     6Version: 0.3.3
    77Author: Suhas Sharma
    88Author URI: http://suhastech.com
     
    201201    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])))
    202202    {
    203 if (@GetImageSize($replace[0])) {
    204203        $upload = media_sideload_image(trim($replace[0]), $post->ID);
    205204       
     
    213212   $count++;
    214213   
    215 }   
     214
    216215    }
    217216   
     
    228227    $filename = trim(str_replace('%', '', end($final)));
    229228    $ext = substr(trim($replace[0]), -4);
    230     if ($ext == ".JPG" || $ext == ".jpg" || $ext == ".PNG" || $ext == ".png" || $ext == ".GIF" || $ext == ".gif")
     229    if ($ext == ".JPG" || $ext == ".jpg" || $ext == ".PNG" || $ext == ".png" || $ext == ".GIF" || $ext == ".gif" || $ext == ".jpeg")
    231230         {
    232231    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])))
    233232    {
    234 if (@GetImageSize($replace[0])) {
    235233        $upload = media_sideload_image(trim($replace[0]), $post->ID);
    236234       
     
    244242   $count++;
    245243   
    246 }
     244
    247245
    248246    }
     
    355353    if ( !is_404() )
    356354        return;
    357 
    358         $req_uri = $_SERVER['REQUEST_URI'];
     355    $subdirectory = explode ("/", get_home_url());
     356        $req_uri = str_replace("/".end($subdirectory), "", $_SERVER['REQUEST_URI']);   
    359357        $url = explode("?", $req_uri); 
    360358        $res = $wpdb->get_results("SELECT post_id FROM $wpdb->postmeta WHERE meta_key = 'blogger_permalink' AND meta_value = '$url[0]'");
Note: See TracChangeset for help on using the changeset viewer.