Make WordPress Core


Ignore:
Timestamp:
11/15/2021 11:20:20 PM (3 years ago)
Author:
joedolson
Message:

Media: Revert media uploader input change in [52059].

Based on follow-up research, this change was never necessary in order to use e2e tests in the media library uploader. Additionally, it created several complicated side effects. Without significant benefit, it's not valuable to pursue the change further.

Follow up to [52059].

See #54168, #54411.
Fixes #54168.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media-template.php

    r52059 r52171  
    253253                <h2 class="upload-instructions drop-instructions"><?php _e( 'Drop files to upload' ); ?></h2>
    254254                <p class="upload-instructions drop-instructions"><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p>
    255                 <div class="browser-container">
    256                     <label class="button button-hero"><?php esc_html_e( 'Select Files' ); ?></label>
    257                     <input type="file" class="browser screen-reader-text" aria-describedby="post-upload-info">
    258                 </div>
     255                <button type="button" class="browser button button-hero" aria-labelledby="post-upload-info"><?php _e( 'Select Files' ); ?></button>
    259256            </div>
    260257
Note: See TracChangeset for help on using the changeset viewer.