From 1f1a527115d14738d5fe1739f7d1fb296334437a Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Mon, 6 Jun 2011 12:40:00 +0000 Subject: [PATCH] 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 --- wp-includes/admin-bar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index f9a611beb5..7a80789c23 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -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' );