Make WordPress Core

Ticket #54168: 54618.diff

File 54618.diff, 795 bytes (added by joedolson, 3 years ago)

Switches input from button to file; adds styles to hide input & show label as button style.

  • src/wp-admin/includes/media.php

     
    22462246                <div class="drag-drop-inside">
    22472247                <p class="drag-drop-info"><?php _e( 'Drop files to upload' ); ?></p>
    22482248                <p><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p>
    2249                 <p class="drag-drop-buttons"><input id="plupload-browse-button" type="button" value="<?php esc_attr_e( 'Select Files' ); ?>" class="button" /></p>
     2249                <p class="drag-drop-buttons"><label for="plupload-browse-button" class="button"><?php esc_attr_e( 'Select Files' ); ?></label><input id="plupload-browse-button" type="file" class="hidden" /></p>
    22502250                </div>
    22512251        </div>
    22522252        <?php