Add import_done actions
git-svn-id: http://svn.automattic.com/wordpress/trunk@6472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
03a9269b11
commit
7e0152f018
@ -162,7 +162,7 @@ class BW_Import {
|
|||||||
if ( is_wp_error( $result ) )
|
if ( is_wp_error( $result ) )
|
||||||
return $result;
|
return $result;
|
||||||
wp_import_cleanup($file['id']);
|
wp_import_cleanup($file['id']);
|
||||||
|
do_action('import_done', 'blogware');
|
||||||
echo '<h3>';
|
echo '<h3>';
|
||||||
printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home'));
|
printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home'));
|
||||||
echo '</h3>';
|
echo '</h3>';
|
||||||
|
@ -615,6 +615,7 @@ class Dotclear_Import {
|
|||||||
delete_option('dcname');
|
delete_option('dcname');
|
||||||
delete_option('dchost');
|
delete_option('dchost');
|
||||||
delete_option('dccharset');
|
delete_option('dccharset');
|
||||||
|
do_action('import_done', 'dotclear');
|
||||||
$this->tips();
|
$this->tips();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -283,6 +283,7 @@ class GM_Import {
|
|||||||
echo '... <strong>'.__('Done').'</strong></li>';
|
echo '... <strong>'.__('Done').'</strong></li>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
do_action('import_done', 'greymatter');
|
||||||
?>
|
?>
|
||||||
</ul><strong><?php _e('Done') ?></strong></li></ul>
|
</ul><strong><?php _e('Done') ?></strong></li></ul>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
|
@ -138,6 +138,7 @@ class LJ_Import {
|
|||||||
if ( is_wp_error( $result ) )
|
if ( is_wp_error( $result ) )
|
||||||
return $result;
|
return $result;
|
||||||
wp_import_cleanup($file['id']);
|
wp_import_cleanup($file['id']);
|
||||||
|
do_action('import_done', 'livejournal');
|
||||||
|
|
||||||
echo '<h3>';
|
echo '<h3>';
|
||||||
printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home'));
|
printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home'));
|
||||||
|
@ -141,6 +141,7 @@ class RSS_Import {
|
|||||||
if ( is_wp_error( $result ) )
|
if ( is_wp_error( $result ) )
|
||||||
return $result;
|
return $result;
|
||||||
wp_import_cleanup($file['id']);
|
wp_import_cleanup($file['id']);
|
||||||
|
do_action('import_done', 'rss');
|
||||||
|
|
||||||
echo '<h3>';
|
echo '<h3>';
|
||||||
printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home'));
|
printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home'));
|
||||||
|
@ -550,6 +550,7 @@ class Textpattern_Import {
|
|||||||
delete_option('txppass');
|
delete_option('txppass');
|
||||||
delete_option('txpname');
|
delete_option('txpname');
|
||||||
delete_option('txphost');
|
delete_option('txphost');
|
||||||
|
do_action('import_done', 'textpattern');
|
||||||
$this->tips();
|
$this->tips();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -274,6 +274,7 @@ class WP_Import {
|
|||||||
echo '</ol>';
|
echo '</ol>';
|
||||||
|
|
||||||
wp_import_cleanup($this->id);
|
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>';
|
echo '<h3>'.sprintf(__('All done.').' <a href="%s">'.__('Have fun!').'</a>', get_option('home')).'</h3>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user