validation fixes for the WordPress importer. Fixes #7982 props sivel.
git-svn-id: https://develop.svn.wordpress.org/trunk@9372 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2b21ab068e
commit
7351b448ae
|
@ -206,9 +206,9 @@ class WP_Import {
|
||||||
|
|
||||||
|
|
||||||
$authors = $this->get_wp_authors();
|
$authors = $this->get_wp_authors();
|
||||||
echo '<ol id="authors">';
|
|
||||||
echo '<form action="?import=wordpress&step=2&id=' . $this->id . '" method="post">';
|
echo '<form action="?import=wordpress&step=2&id=' . $this->id . '" method="post">';
|
||||||
wp_nonce_field('import-wordpress');
|
wp_nonce_field('import-wordpress');
|
||||||
|
echo '<ol id="authors">';
|
||||||
$j = -1;
|
$j = -1;
|
||||||
foreach ($authors as $author) {
|
foreach ($authors as $author) {
|
||||||
++ $j;
|
++ $j;
|
||||||
|
@ -229,7 +229,9 @@ class WP_Import {
|
||||||
<?php
|
<?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>';
|
echo '</form>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -237,7 +239,7 @@ class WP_Import {
|
||||||
function users_form($n, $author) {
|
function users_form($n, $author) {
|
||||||
|
|
||||||
if ( $this->allow_create_users() ) {
|
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 {
|
else {
|
||||||
echo __('Map to existing').'<br />';
|
echo __('Map to existing').'<br />';
|
||||||
|
|
Loading…
Reference in New Issue