Link the Media item in the Add New menu to the Upload New Media form correctly. Props hew.

git-svn-id: https://develop.svn.wordpress.org/trunk@18164 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2011-06-06 12:40:00 +00:00
parent 942fb3838a
commit 1f1a527115

View File

@ -187,7 +187,7 @@ function wp_admin_bar_new_content_menu( $wp_admin_bar ) {
}
if ( current_user_can( 'upload_files' ) )
$actions[ 'upload.php' ] = array( __( 'Media' ), 'upload_files', 'new-media' );
$actions[ 'media-new.php' ] = array( __( 'Media' ), 'upload_files', 'new-media' );
if ( current_user_can( 'manage_links' ) )
$actions[ 'link-add.php' ] = array( __( 'Link' ), 'manage_links', 'new-link' );