Ticket #20100: 20100.patch
File 20100.patch, 1.4 KB (added by , 13 years ago) |
---|
-
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> <?php179 <h2><?php echo esc_html( $title ); ?><?php if ( !$is_iphone ) { ?> <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a><?php } ?> <?php 180 180 if ( ! empty( $_REQUEST['s'] ) ) 181 181 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?> 182 182 </h2> -
wp-includes/admin-bar.php
480 480 * @since 3.1.0 481 481 */ 482 482 function wp_admin_bar_new_content_menu( $wp_admin_bar ) { 483 global $is_iphone; 483 484 $actions = array(); 484 485 485 486 $cpts = (array) get_post_types( array( 'show_in_admin_bar' => true ), 'objects' ); … … 489 490 unset( $cpts['post'] ); 490 491 } 491 492 492 if ( current_user_can( 'upload_files' ) )493 if ( current_user_can( 'upload_files' ) && !$is_iphone ) 493 494 $actions[ 'media-new.php' ] = array( _x( 'Media', 'add new from admin bar' ), 'new-media' ); 494 495 495 496 if ( current_user_can( 'manage_links' ) )