Make WordPress Core


Ignore:
Timestamp:
04/10/2012 03:18:48 AM (13 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-admin/media.php

    r19712 r20422  
    107107<?php
    108108echo esc_html( $title );
    109 if ( current_user_can( 'upload_files' ) ) { ?>
     109if ( current_user_can( 'upload_files' ) && ! wp_is_mobile() ) { ?>
    110110    <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a>
    111111<?php } ?>
Note: See TracChangeset for help on using the changeset viewer.