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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-06-23 17:23:11 +00:00
parent 4c0207a772
commit a64bd28ddb
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;
}