Changeset 20422
- Timestamp:
- 04/10/2012 03:18:48 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/media.php
r19712 r20422 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 } ?> -
trunk/wp-admin/upload.php
r19528 r20422 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() ); ?> -
trunk/wp-includes/admin-bar.php
r20099 r20422 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
Note: See TracChangeset
for help on using the changeset viewer.