Ticket #63238: 63238.button-role.diff
| File 63238.button-role.diff, 1.8 KB (added by , 5 months ago) |
|---|
-
src/js/_enqueues/vendor/plupload/handlers.js
461 461 } 462 462 }); 463 463 464 $( '.upload-flash-bypass a[role="button"], .upload-html-bypass a[role="button"]' ).on( 'keydown.uploader', function( e ) { 465 if ( e.code === 'Space' ) { 466 $( this ).trigger( 'click' ); 467 } 468 }); 469 464 470 // Attempt to create image sub-sizes when an image was uploaded successfully 465 471 // but the server responded with an HTTP 5xx error. 466 472 tryAgain = function( up, error ) { -
src/wp-admin/includes/media.php
3048 3048 /* translators: 1: URL to browser uploader, 2: Additional link attributes. */ 3049 3049 __( 'You are using the multi-file uploader. Problems? Try the <a href="%1$s" %2$s>browser uploader</a> instead.' ), 3050 3050 $browser_uploader, 3051 ' target="_blank"'3051 'role="button"' 3052 3052 ); 3053 3053 ?> 3054 3054 </p> … … 3061 3061 * @since 2.6.0 3062 3062 */ 3063 3063 function media_upload_html_bypass() { 3064 $bypass_message = __( 'You are using the browser’s built-in file uploader. The WordPress uploader includes multiple file selection and drag and drop capability. <a href="#">Switch to the multi-file uploader</a>.' ); 3064 3065 ?> 3065 3066 <p class="upload-html-bypass hide-if-no-js"> 3066 <?php _e( 'You are using the browser’s built-in file uploader. The WordPress uploader includes multiple file selection and drag and drop capability. <a href="#">Switch to the multi-file uploader</a>.'); ?>3067 <?php echo str_replace( '<a href="#">', '<a href="#" role="button">', $bypass_message ); ?> 3067 3068 </p> 3068 3069 <?php 3069 3070 }