Use unlocalized hook name. Props hakre. fixes #9438

git-svn-id: http://svn.automattic.com/wordpress/trunk@11017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-20 19:48:11 +00:00
parent 728943945e
commit 63fad3d055
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ do_action('_admin_menu');
// Create list of page plugin hook names.
foreach ($menu as $menu_page) {
$admin_page_hooks[$menu_page[2]] = sanitize_title($menu_page[0]);
$admin_page_hooks[$menu_page[2]] = sanitize_title(basename($menu_page[2], '.php'));
}
$_wp_submenu_nopriv = array();