Make WordPress Core


Ignore:
Timestamp:
04/10/2012 03:18:48 AM (12 years ago)
Author:
azaozz
Message:

Consistently remove links to media-new.php for mobile devices, props SergeyBiryukov, see #20405

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r20099 r20422  
    490490    }
    491491
    492     if ( current_user_can( 'upload_files' ) )
     492    if ( current_user_can( 'upload_files' ) && ! wp_is_mobile() )
    493493        $actions[ 'media-new.php' ] = array( _x( 'Media', 'add new from admin bar' ), 'new-media' );
    494494
Note: See TracChangeset for help on using the changeset viewer.