WordPress.org

Make WordPress Core

Ticket #16518: 16518.patch

File 16518.patch, 1.1 KB (added by SergeyBiryukov, 7 years ago)
  • wp-admin/includes/media.php

     
    15171517        <input id="cancel-upload" disabled="true" onclick="cancelUpload()" type="button" value="<?php esc_attr_e('Cancel Upload'); ?>" class="button" /></p>
    15181518        </div>
    15191519</div>
     1520<?php
     1521$wp_multiselect_key = false;
     1522if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Mac') !== false ) {
     1523        $wp_multiselect_key = 'CMD';
     1524} elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Windows') !== false ) {
     1525        $wp_multiselect_key = 'CTRL';
     1526} elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Linux') !== false ) {
     1527        $wp_multiselect_key = 'CTRL';
     1528}
     1529if ( $wp_multiselect_key ): ?>
     1530<p class="multi-file-upload"><?php printf( __(' <strong>Note:</strong> To select multiple files to upload you can press the <kbd>%s</kbd> key within the file selection popup.' ), $wp_multiselect_key ); ?></p><?php
     1531endif;
     1532unset( $wp_multiselect_key ); ?>
     1533
    15201534<?php do_action('post-plupload-upload-ui'); // hook change, old name: 'post-flash-upload-ui' ?>
    15211535</div>
    15221536