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:
parent
c3b1b5d5e3
commit
0c44e6c3e6
|
@ -9,11 +9,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Load WordPress Administration Bootstrap */
|
/** Load WordPress Administration Bootstrap */
|
||||||
require_once('admin.php');
|
|
||||||
$parent_file = 'tools.php';
|
$parent_file = 'tools.php';
|
||||||
$submenu_file = 'import.php';
|
$submenu_file = 'import.php';
|
||||||
$title = __('Import Blogroll');
|
$title = __('Import Blogroll');
|
||||||
|
|
||||||
|
class OPML_Import {
|
||||||
|
|
||||||
|
function dispatch() {
|
||||||
$step = $_POST['step'];
|
$step = $_POST['step'];
|
||||||
if (!$step) $step = 0;
|
if (!$step) $step = 0;
|
||||||
?>
|
?>
|
||||||
|
@ -139,7 +141,13 @@ if ( ! $blogrolling )
|
||||||
break;
|
break;
|
||||||
} // end case 1
|
} // end case 1
|
||||||
} // end switch
|
} // 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'));
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue