mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user