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

git-svn-id: http://svn.automattic.com/wordpress/trunk@20449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz
2012-04-12 00:16:37 +00:00
parent 65382b14f8
commit 817b932ed1
7 changed files with 32 additions and 23 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ case 'edit' :
<h2>
<?php
echo esc_html( $title );
if ( current_user_can( 'upload_files' ) && ! wp_is_mobile() ) { ?>
if ( current_user_can( 'upload_files' ) ) { ?>
<a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a>
<?php } ?>
</h2>