Make link-import and importer

git-svn-id: http://svn.automattic.com/wordpress/trunk@9968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-29 18:23:03 +00:00
parent c3b1b5d5e3
commit 0c44e6c3e6
1 changed files with 10 additions and 2 deletions

View File

@ -9,11 +9,13 @@
*/
/** Load WordPress Administration Bootstrap */
require_once('admin.php');
$parent_file = 'tools.php';
$submenu_file = 'import.php';
$title = __('Import Blogroll');
class OPML_Import {
function dispatch() {
$step = $_POST['step'];
if (!$step) $step = 0;
?>
@ -139,7 +141,13 @@ if ( ! $blogrolling )
break;
} // end case 1
} // end switch
}
include('admin-footer.php');
function OPML_Import() {}
}
$opml_importer = new OPML_Import();
register_importer('opml', __('Blogroll'), __('Import links in OPML format.'), array(&$opml_importer, 'dispatch'));
?>