WordPress.org

Make WordPress Core

Ticket #3490: 3490-txt-old_blogger-blogspot_retired.diff

File 3490-txt-old_blogger-blogspot_retired.diff, 3.8 KB (added by foolswisdom, 7 years ago)

Patch updated, must forget something

  • trunk/wp-admin/import/blogger.php

     
    77 
    88        // Shows the welcome screen and the magic iframe. 
    99        function greet() { 
    10                 $title = __('Import Blogger or Blogspot'); 
    11                 $welcome = __('Howdy! This importer allows you to import posts and comments from your Blogger account into your WordPress blog.'); 
     10                $title = __('Import Old Blogger'); 
     11                $welcome = __('Howdy! This importer allows you to import posts and comments from your Old Blogger account into your WordPress blog.'); 
    1212                $noiframes = __('This feature requires iframe support.'); 
    1313                $warning = js_escape(__('This will delete everything saved by the Blogger importer except your posts and comments. Are you sure you want to do this?')); 
    1414                $reset = __('Reset this importer'); 
    1515                $incompat = __('Your web server is not properly configured to use this importer. Please enable the CURL extension for PHP and then reload this page.'); 
    1616 
    1717                echo "<div class='wrap'><h2>$title</h2><p>$welcome</p>"; 
     18                echo "<p>" . __('Please note that this importer <em>does not work with new Blogger (using your Google account)</em>.') . "</p>"; 
    1819                if ( function_exists('curl_init') ) 
    1920                        echo "<iframe src='admin.php?import=blogger&amp;noheader=true' height='350px' width = '99%'>$noiframes</iframe><p><a href='admin.php?import=blogger&amp;restart=true&amp;noheader=true' onclick='return confirm(\"$warning\")'>$reset</a></p>"; 
    2021                else 
     
    662663 
    663664$blogger_import = new Blogger_Import(); 
    664665 
    665 register_importer('blogger', __('Blogger or Blog*Spot'), __('Import posts, comments, and users from a Blogger or Blog*Spot blog'), array ($blogger_import, 'start')); 
     666register_importer('blogger', __('Old Blogger'), __('Import posts, comments, and users from an Old Blogger blog'), array ($blogger_import, 'start')); 
    666667 
    667668?> 
  • 2.0/wp-admin/import/blogger.php

     
    77 
    88        // Shows the welcome screen and the magic iframe. 
    99        function greet() { 
    10                 $title = __('Import Blogger'); 
    11                 $welcome = __('Howdy! This importer allows you to import posts and comments from your Blogger account into your WordPress blog.'); 
     10                $title = __('Import Old Blogger'); 
     11                $welcome = __('Howdy! This importer allows you to import posts and comments from your Old Blogger account into your WordPress blog.'); 
    1212                $noiframes = __('This feature requires iframe support.'); 
    1313                $warning = __('This will delete everything saved by the Blogger importer except your posts and comments. Are you sure you want to do this?'); 
    1414                $reset = __('Reset this importer'); 
    1515                $incompat = __('Your web server is not properly configured to use this importer. Please enable the CURL extension for PHP and then reload this page.'); 
    1616 
    1717                echo "<div class='wrap'><h2>$title</h2><p>$welcome</p>"; 
     18                echo "<p>" . __('Please note that this importer <em>does not work with Blogger (using your Google account)</em>.') . "</p>"; 
    1819                if ( function_exists('curl_init') ) 
    1920                        echo "<iframe src='admin.php?import=blogger&amp;noheader=true' height='350px' width = '99%'>$noiframes</iframe><p><a href='admin.php?import=blogger&amp;restart=true&amp;noheader=true' onclick='return confirm(\"$warning\")'>$reset</a></p>"; 
    2021                else 
     
    662663 
    663664$blogger_import = new Blogger_Import(); 
    664665 
    665 register_importer('blogger', __('Blogger and Blogspot'), __('Import <strong>posts and comments</strong> from your Blogger account'), array ($blogger_import, 'start')); 
     666register_importer('blogger', __('Old Blogger'), __('Import <strong>posts and comments</strong> from your Old Blogger account'), array ($blogger_import, 'start')); 
    666667 
    667668?>