Create Tools screen. fixes #8361

git-svn-id: https://develop.svn.wordpress.org/trunk@9929 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-11-27 21:11:25 +00:00
parent ace2567641
commit ff3f697dbf
7 changed files with 22 additions and 18 deletions

View File

@@ -60,8 +60,8 @@ if (isset($plugin_page)) {
if( ! $page_hook = get_plugin_page_hook($plugin_page, $pagenow) ) {
$page_hook = get_plugin_page_hook($plugin_page, $plugin_page);
// backwards compatibility for plugins using add_management_page
if ( empty( $page_hook ) && 'edit.php' == $pagenow && '' != get_plugin_page_hook($plugin_page, 'import.php') ) {
wp_redirect('import.php?page=' . $plugin_page);
if ( empty( $page_hook ) && 'edit.php' == $pagenow && '' != get_plugin_page_hook($plugin_page, 'tools.php') ) {
wp_redirect('tool.php?page=' . $plugin_page);
exit;
}
}
@@ -112,7 +112,7 @@ if (isset($plugin_page)) {
include(ABSPATH . "wp-admin/import/$importer.php");
}
$parent_file = 'import.php';
$parent_file = 'tools.php';
$submenu_file = 'import.php';
$title = __('Import');