mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 18:08:09 +01:00
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:
parent
728943945e
commit
63fad3d055
@ -127,7 +127,7 @@ do_action('_admin_menu');
|
|||||||
|
|
||||||
// Create list of page plugin hook names.
|
// Create list of page plugin hook names.
|
||||||
foreach ($menu as $menu_page) {
|
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();
|
$_wp_submenu_nopriv = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user