mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
What an oogly importer.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3f9a04e5f9
commit
2f0c1f6f50
@ -134,6 +134,8 @@ class MT_Import {
|
||||
|
||||
function mt_authors_form() {
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h2><?php _e('Assign Authors'); ?></h2>
|
||||
<p><?php _e('To make it easier for you to edit and save the imported posts and drafts, you may want to change the name of the author of the posts. For example, you may want to import all the entries as <code>admin</code>s entries.'); ?></p>
|
||||
<p><?php _e('Below, you can see the names of the authors of the MovableType posts in <i>italics</i>. For each of these names, you can either pick an author in your WordPress installation from the menu, or enter a name for the author in the textbox.'); ?></p>
|
||||
<p><?php _e('If a new user is created by WordPress, the password will be set, by default, to "changeme". Quite suggestive, eh? ;)'); ?></p>
|
||||
@ -153,7 +155,7 @@ class MT_Import {
|
||||
|
||||
echo '<input type="submit" value="Submit">'.'<br/>';
|
||||
echo '</form>';
|
||||
echo '</ol>';
|
||||
echo '</ol></div>';
|
||||
|
||||
flush();
|
||||
}
|
||||
@ -174,7 +176,7 @@ class MT_Import {
|
||||
function process_posts() {
|
||||
global $wpdb;
|
||||
$i = -1;
|
||||
echo "<ol>";
|
||||
echo "<div class='wrap'><ol>";
|
||||
foreach ($this->posts as $post) {
|
||||
if ('' != trim($post)) {
|
||||
++ $i;
|
||||
@ -389,7 +391,7 @@ class MT_Import {
|
||||
|
||||
wp_import_cleanup($this->id);
|
||||
|
||||
echo '<h3>'.sprintf(__('All done. <a href="%s">Have fun!</a>'), get_option('home')).'</h3>';
|
||||
echo '<h3>'.sprintf(__('All done. <a href="%s">Have fun!</a>'), get_option('home')).'</h3></div>';
|
||||
}
|
||||
|
||||
function import() {
|
||||
|
Loading…
Reference in New Issue
Block a user