Uploader improvements from mdawaffe. fixes #3191

git-svn-id: https://develop.svn.wordpress.org/trunk@4274 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-10-03 07:15:13 +00:00
parent 76f6cf50c9
commit ad90b4519b
12 changed files with 855 additions and 773 deletions

View File

@@ -30,6 +30,7 @@ $submenu['post-new.php'][10] = array(__('Write Page'), 'edit_pages', 'page-new.p
$submenu['edit.php'][5] = array(__('Posts'), 'edit_posts', 'edit.php');
$submenu['edit.php'][10] = array(__('Pages'), 'edit_pages', 'edit-pages.php');
$submenu['edit.php'][12] = array(__('Uploads'), 'upload_files', 'upload.php');
$submenu['edit.php'][15] = array(__('Categories'), 'manage_categories', 'categories.php');
$submenu['edit.php'][20] = array(__('Comments'), 'edit_posts', 'edit-comments.php');
$awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");
@@ -124,6 +125,8 @@ foreach ( $menu as $id => $data ) {
}
}
unset($id);
ksort($menu); // make it all pretty
if (! user_can_access_admin_page()) {