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:
parent
58f45d75d9
commit
ff09d34fb6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue