Changeset 3756
- Timestamp:
- 05/02/2006 07:08:37 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/menu.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r3733 r3756 49 49 $submenu['themes.php'][10] = array(__('Theme Editor'), 'edit_themes', 'theme-editor.php'); 50 50 51 // Create list of page plugin hook names. 52 foreach ($menu as $menu_page) { 53 $admin_page_hooks[$menu_page[2]] = sanitize_title($menu_page[0]); 54 } 55 56 do_action('admin_menu', ''); 57 51 58 // Loop over submenus and remove pages for which the user does not have privs. 52 59 foreach ($submenu as $parent => $sub) { … … 94 101 } 95 102 96 // Create list of page plugin hook names.97 foreach ($menu as $menu_page) {98 $admin_page_hooks[$menu_page[2]] = sanitize_title($menu_page[0]);99 }100 101 do_action('admin_menu', '');102 103 ksort($menu); // make it all pretty 103 104
Note: See TracChangeset
for help on using the changeset viewer.