Ticket #47120: 47120.diff
File 47120.diff, 2.4 KB (added by , 3 years ago) |
---|
-
src/js/media/views/uploader/inline.js
115 115 116 116 $browser.detach().text( $placeholder.text() ); 117 117 $browser[0].className = $placeholder[0].className; 118 $browser[0].setAttribute( 'aria-labelledby', $browser[0].id + ' ' + $placeholder[0].getAttribute('aria-labelledby') ); 118 119 $placeholder.replaceWith( $browser.show() ); 119 120 } 120 121 -
src/js/media/views/uploader/status.js
118 118 119 119 // Can show additional info here while retrying to create image sub-sizes. 120 120 this.views.add( '.upload-errors', statusError, { at: 0 } ); 121 this.$el.attr( 'tabindex', '-1' ).trigger( 'focus' ); 121 122 }, 122 123 123 124 dismiss: function() { -
src/wp-includes/media-template.php
252 252 <div class="upload-ui"> 253 253 <h2 class="upload-instructions drop-instructions"><?php _e( 'Drop files to upload' ); ?></h2> 254 254 <p class="upload-instructions drop-instructions"><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p> 255 <button type="button" class="browser button button-hero" ><?php _e( 'Select Files' ); ?></button>255 <button type="button" class="browser button button-hero" aria-labelledby="post-upload-info"><?php _e( 'Select Files' ); ?></button> 256 256 </div> 257 257 258 <div class="upload-inline-status" ></div>258 <div class="upload-inline-status" aria-live="assertive"></div> 259 259 260 <div class="post-upload-ui" >260 <div class="post-upload-ui" id="post-upload-info"> 261 261 <?php 262 262 /** This action is documented in wp-admin/includes/media.php */ 263 263 do_action( 'pre-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores … … 330 330 <span class="upload-detail-separator">–</span> 331 331 <span class="upload-filename"></span> 332 332 </div> 333 <div class="upload-errors" ></div>333 <div class="upload-errors" role="alert"></div> 334 334 </script> 335 335 336 336 <?php // Template for the uploading status errors. ?>