From 0c44e6c3e67b3a012e8a4c718e5d8b84c6e1bf88 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 29 Nov 2008 18:23:03 +0000 Subject: [PATCH] Make link-import and importer git-svn-id: http://svn.automattic.com/wordpress/trunk@9968 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/{link-import.php => import/opml.php} | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) rename wp-admin/{link-import.php => import/opml.php} (94%) diff --git a/wp-admin/link-import.php b/wp-admin/import/opml.php similarity index 94% rename from wp-admin/link-import.php rename to wp-admin/import/opml.php index 9d4d354ba0..46c94b564a 100644 --- a/wp-admin/link-import.php +++ b/wp-admin/import/opml.php @@ -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')); ?>