Add import_done actions

git-svn-id: http://svn.automattic.com/wordpress/trunk@6472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-12-23 01:10:29 +00:00
parent 03a9269b11
commit 7e0152f018
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>';
}