Don't hide links to the upload form and show an error for mobile devices that cannot upload, see #20410

git-svn-id: https://develop.svn.wordpress.org/trunk@20449 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2012-04-12 00:16:37 +00:00
parent 5ff62a4351
commit e032e94c4f
7 changed files with 32 additions and 23 deletions

View File

@@ -489,7 +489,7 @@ function wp_admin_bar_new_content_menu( $wp_admin_bar ) {
unset( $cpts['post'] );
}
if ( current_user_can( 'upload_files' ) && ! wp_is_mobile() )
if ( current_user_can( 'upload_files' ) )
$actions[ 'media-new.php' ] = array( _x( 'Media', 'add new from admin bar' ), 'new-media' );
if ( current_user_can( 'manage_links' ) )