From 6af4d57f8ddfc3ef166224edacf04875e5f47a82 Mon Sep 17 00:00:00 2001 From: rboren Date: Thu, 25 Nov 2004 15:45:16 +0000 Subject: [PATCH] Admin tweaks from MooKitty. git-svn-id: http://svn.automattic.com/wordpress/trunk@1880 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-header.php | 4 ++-- wp-admin/menu.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index daaded0b7..431e0d47b 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -4,7 +4,7 @@ <?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress - + @@ -75,4 +75,4 @@ require(ABSPATH . '/wp-admin/menu-header.php'); if ( $parent_file == 'options-general.php' ) { require(ABSPATH . '/wp-admin/options-head.php'); } -?> \ No newline at end of file +?> diff --git a/wp-admin/menu.php b/wp-admin/menu.php index 91d36d1b2..9e78cd0c7 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -13,7 +13,6 @@ $menu[30] = array(__('Options'), 6, 'options-general.php'); $menu[35] = array(__('Plugins'), 8, 'plugins.php'); $menu[40] = array(__('Presentation'), 8, 'themes.php'); $menu[45] = array(__('Upload'), get_settings('fileupload_minlevel'), 'upload.php'); -ksort($menu); // So other files can plugin $submenu['post.php'][5] = array(__('Write Post'), 1, 'post.php'); $submenu['post.php'][10] = array(__('Write Page'), 5, 'page-new.php'); @@ -48,6 +47,7 @@ $submenu['themes.php'][5] = array(__('Themes'), 5, 'themes.php'); $submenu['themes.php'][10] = array(__('Theme Editor'), 5, 'theme-editor.php'); do_action('admin_menu', ''); +ksort($menu); // make it all pretty if (! user_can_access_admin_page()) { die( __('You have do not have sufficient permissions to access this page.') );