Changeset 5400
- Timestamp:
- 05/06/2007 08:35:51 PM (18 years ago)
- Location:
- branches/2.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/wp-admin/menu.php
r5376 r5400 70 70 $submenu['themes.php'][10] = array(__('Theme Editor'), 'edit_themes', 'theme-editor.php'); 71 71 72 do_action('_admin_menu'); 73 72 74 // Create list of page plugin hook names. 73 75 foreach ($menu as $menu_page) { -
branches/2.2/wp-includes/functions.php
r5397 r5400 1491 1491 if ( !function_exists( 'dynamic_sidebar' ) ) { 1492 1492 require_once ABSPATH . WPINC . '/widgets.php'; 1493 add_action( ' admin_head', 'wp_widgets_admin_page' );1494 } 1495 } 1496 1497 function wp_widgets_ad min_page() {1493 add_action( '_admin_menu', 'wp_widgets_add_menu' ); 1494 } 1495 } 1496 1497 function wp_widgets_add_menu() { 1498 1498 global $submenu; 1499 1499 $submenu['themes.php'][7] = array( __( 'Widgets' ), 'edit_themes', 'widgets.php' ); 1500 ksort($submenu['themes.php'], SORT_NUMERIC); 1500 1501 } 1501 1502
Note: See TracChangeset
for help on using the changeset viewer.