mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Link the Media item in the Add New menu to the Upload New Media form correctly. Props hew.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18164 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
21abd80ac5
commit
e84e708e8d
@ -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' );
|
||||
|
Loading…
Reference in New Issue
Block a user