Ticket #20405: 20405.patch
File 20405.patch, 1.7 KB (added by , 13 years ago) |
---|
-
wp-admin/media.php
106 106 <h2> 107 107 <?php 108 108 echo esc_html( $title ); 109 if ( current_user_can( 'upload_files' ) ) { ?>109 if ( current_user_can( 'upload_files' ) && ! wp_is_mobile() ) { ?> 110 110 <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a> 111 111 <?php } ?> 112 112 </h2> -
wp-admin/upload.php
176 176 177 177 <div class="wrap"> 178 178 <?php screen_icon(); ?> 179 <h2><?php echo esc_html( $title ); ?> <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a> <?php 179 <h2> 180 <?php 181 echo esc_html( $title ); 182 if ( current_user_can( 'upload_files' ) && ! wp_is_mobile() ) { ?> 183 <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a><?php 184 } 180 185 if ( ! empty( $_REQUEST['s'] ) ) 181 186 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?> 182 187 </h2> -
wp-includes/admin-bar.php
489 489 unset( $cpts['post'] ); 490 490 } 491 491 492 if ( current_user_can( 'upload_files' ) )492 if ( current_user_can( 'upload_files' ) && ! wp_is_mobile() ) 493 493 $actions[ 'media-new.php' ] = array( _x( 'Media', 'add new from admin bar' ), 'new-media' ); 494 494 495 495 if ( current_user_can( 'manage_links' ) )