WordPress.org

Make WordPress Core

Ticket #20100: 20100.patch

File 20100.patch, 1.4 KB (added by johnbillion, 2 years ago)
  • wp-admin/upload.php

     
    176176 
    177177<div class="wrap"> 
    178178<?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><?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 
    180180if ( ! empty( $_REQUEST['s'] ) ) 
    181181        printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', get_search_query() ); ?> 
    182182</h2> 
  • wp-includes/admin-bar.php

     
    480480 * @since 3.1.0 
    481481 */ 
    482482function wp_admin_bar_new_content_menu( $wp_admin_bar ) { 
     483        global $is_iphone; 
    483484        $actions = array(); 
    484485 
    485486        $cpts = (array) get_post_types( array( 'show_in_admin_bar' => true ), 'objects' ); 
     
    489490                unset( $cpts['post'] ); 
    490491        } 
    491492 
    492         if ( current_user_can( 'upload_files' ) ) 
     493        if ( current_user_can( 'upload_files' ) && !$is_iphone ) 
    493494                $actions[ 'media-new.php' ] = array( _x( 'Media', 'add new from admin bar' ), 'new-media' ); 
    494495 
    495496        if ( current_user_can( 'manage_links' ) )