Fix back-compat plugins page redirects. Props filosofo. fixes #10246 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@11628 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-06-23 17:23:11 +00:00
parent 6cceb3c659
commit 3078a66f60
1 changed files with 3 additions and 0 deletions

View File

@ -691,6 +691,9 @@ function add_submenu_page( $parent, $page_title, $menu_title, $access_level, $fi
add_action( $hookname, $function );
$_registered_pages[$hookname] = true;
// backwards-compatibility for plugins using add_management page. See wp-admin/admin.php for redirect from edit.php to tools.php
if ( 'tools.php' == $parent )
$_registered_pages[get_plugin_page_hookname( $file, 'edit.php')] = true;
return $hookname;
}