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

git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-06-23 17:23:40 +00:00
parent 58f45d75d9
commit ff09d34fb6
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;
}