mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-04 04:19:29 +00:00
Fix typo in Menu redirect, props filosofo, fixes #8422
git-svn-id: http://svn.automattic.com/wordpress/trunk@9962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0449c5532e
commit
f7790aafcd
@ -61,7 +61,7 @@ if (isset($plugin_page)) {
|
||||
$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, 'tools.php') ) {
|
||||
wp_redirect('tool.php?page=' . $plugin_page);
|
||||
wp_redirect('tools.php?page=' . $plugin_page);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user