Skip to content

Commit

Permalink
media-new.php to make menus happy
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@9035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Sep 30, 2008
1 parent 6d4ca4d commit a25b5dd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions wp-admin/media-new.php
@@ -0,0 +1,7 @@
<?php
$_GET['inline'] = 'true';
require_once('admin.php');
$title = __('Upload New Media');
require_once('media-upload.php');

?>
6 changes: 3 additions & 3 deletions wp-admin/menu.php
Expand Up @@ -31,9 +31,9 @@
$submenu['post-new.php'][20] = array( __('Tags'), 'manage_categories', 'edit-tags.php' );
$submenu['post-new.php'][25] = array( __('Categories'), 'manage_categories', 'categories.php' );

$menu[10] = array( __('Media'), 'upload_files', 'media-upload.php' );
$submenu['media-upload.php'][5] = array( __('Upload New'), 'upload_files', 'media-upload.php?inline');
$submenu['media-upload.php'][10] = array( __('View All'), 'upload_files', 'upload.php');
$menu[10] = array( __('Media'), 'upload_files', 'media-new.php' );
$submenu['media-new.php'][5] = array( __('Upload New'), 'upload_files', 'media-new.php');
$submenu['media-new.php'][10] = array( __('View All'), 'upload_files', 'upload.php');

$menu[15] = array( __('Links'), 'manage_links', 'link-add.php' );
$submenu['link-add.php'][5] = array( __('Add New'), 'manage_links', 'link-add.php' );
Expand Down

0 comments on commit a25b5dd

Please sign in to comment.