Make link-import and importer
git-svn-id: https://develop.svn.wordpress.org/trunk@9968 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cc11baaae0
commit
8bc6952610
|
@ -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