Make WordPress Core

Ticket #4788: ampersands.diff

File ampersands.diff, 2.7 KB (added by tmountjr, 19 years ago)

trimmed down escaping

  • blogger.php

     
    88
    99        // Shows the welcome screen and the magic auth link.
    1010        function greet() {
    11                 $next_url = get_option('siteurl') . '/wp-admin/index.php?import=blogger&noheader=true';
     11                $next_url = get_option('siteurl') . '/wp-admin/index.php?import=blogger&noheader=true';
    1212                $auth_url = "https://www.google.com/accounts/AuthSubRequest";
    1313                $title = __('Import Blogger');
    1414                $welcome = __('Howdy! This importer allows you to import posts and comments from your Blogger account into your WordPress blog.');
     
    613613                foreach ( $blog['authors'] as $i => $author )
    614614                        $rows .= "<tr><td><label for='authors[$i]'>{$author[0]}</label></td><td><select name='authors[$i]' id='authors[$i]'>" . $this->get_user_options($author[1]) . "</select></td></tr>";
    615615
    616                 return "<div class='wrap'><h2>$heading</h2><h3>$blogtitle</h3><p>$directions</p><form action='index.php?import=blogger&noheader=true&saveauthors=1' method='post'><input type='hidden' name='blog' value='$importing_blog' /><table cellpadding='5'><thead><td>$mapthis</td><td>$tothis</td></thead>$rows<tr><td></td><td class='submit'><input type='submit' class='authorsubmit' value='$submit' /></td></tr></table></form></div>";
     616                return "<div class='wrap'><h2>$heading</h2><h3>$blogtitle</h3><p>$directions</p><form action='index.php?import=blogger&amp;noheader=true&amp;saveauthors=1' method='post'><input type='hidden' name='blog' value='$importing_blog' /><table cellpadding='5'><thead><td>$mapthis</td><td>$tothis</td></thead>$rows<tr><td></td><td class='submit'><input type='submit' class='authorsubmit' value='$submit' /></td></tr></table></form></div>";
    617617        }
    618618
    619619        function get_user_options($current) {
     
    781781                        $restart = __('Restart');
    782782                        $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.');
    783783                        $submit = __('Clear account information');
    784                         echo "<div class='wrap'><h2>$restart</h2><p>$message</p><form method='post' action='?import=blogger&noheader=true'><p class='submit' style='text-align:left;'><input type='submit' value='$submit' name='restart' /></p></form></div>";
     784                        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' value='$submit' name='restart' /></p></form></div>";
    785785                }
    786786        }
    787787