validation fixes for the WordPress importer. Fixes #7982 props sivel.

git-svn-id: http://svn.automattic.com/wordpress/trunk@9372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-10-27 21:12:24 +00:00
parent 04ffb66e61
commit b392c3a35f
1 changed files with 5 additions and 3 deletions

View File

@ -206,9 +206,9 @@ class WP_Import {
$authors = $this->get_wp_authors();
echo '<ol id="authors">';
echo '<form action="?import=wordpress&amp;step=2&amp;id=' . $this->id . '" method="post">';
wp_nonce_field('import-wordpress');
echo '<ol id="authors">';
$j = -1;
foreach ($authors as $author) {
++ $j;
@ -229,7 +229,9 @@ class WP_Import {
<?php
}
echo '<input type="submit" value="'.attribute_escape( __('Submit') ).'">'.'<br />';
echo '<p class="submit">';
echo '<input type="submit" class="button" value="'.attribute_escape( __('Submit') ).'" />'.'<br />';
echo '</p>';
echo '</form>';
}
@ -237,7 +239,7 @@ class WP_Import {
function users_form($n, $author) {
if ( $this->allow_create_users() ) {
printf('<label>'.__('Create user %1$s or map to existing'), ' <input type="text" value="'.$author.'" name="'.'user_create['.intval($n).']'.'" maxlength="30"></label> <br />');
printf('<label>'.__('Create user %1$s or map to existing'), ' <input type="text" value="'.$author.'" name="'.'user_create['.intval($n).']'.'" maxlength="30" /></label> <br />');
}
else {
echo __('Map to existing').'<br />';