Add import_done actions

git-svn-id: https://develop.svn.wordpress.org/trunk@6472 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-12-23 01:10:29 +00:00
parent 976dc65a9b
commit 6d13a7f175
7 changed files with 7 additions and 1 deletions

View File

@ -162,7 +162,7 @@ class BW_Import {
if ( is_wp_error( $result ) )
return $result;
wp_import_cleanup($file['id']);
do_action('import_done', 'blogware');
echo '<h3>';
printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home'));
echo '</h3>';

View File

@ -615,6 +615,7 @@ class Dotclear_Import {
delete_option('dcname');
delete_option('dchost');
delete_option('dccharset');
do_action('import_done', 'dotclear');
$this->tips();
}

View File

@ -283,6 +283,7 @@ class GM_Import {
echo '... <strong>'.__('Done').'</strong></li>';
}
}
do_action('import_done', 'greymatter');
?>
</ul><strong><?php _e('Done') ?></strong></li></ul>
<p>&nbsp;</p>

View File

@ -138,6 +138,7 @@ class LJ_Import {
if ( is_wp_error( $result ) )
return $result;
wp_import_cleanup($file['id']);
do_action('import_done', 'livejournal');
echo '<h3>';
printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home'));

View File

@ -141,6 +141,7 @@ class RSS_Import {
if ( is_wp_error( $result ) )
return $result;
wp_import_cleanup($file['id']);
do_action('import_done', 'rss');
echo '<h3>';
printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home'));

View File

@ -550,6 +550,7 @@ class Textpattern_Import {
delete_option('txppass');
delete_option('txpname');
delete_option('txphost');
do_action('import_done', 'textpattern');
$this->tips();
}

View File

@ -274,6 +274,7 @@ class WP_Import {
echo '</ol>';
wp_import_cleanup($this->id);
do_action('import_done', 'wordpress');
echo '<h3>'.sprintf(__('All done.').' <a href="%s">'.__('Have fun!').'</a>', get_option('home')).'</h3>';
}