Ticket #63238: 63238.button-element.diff
| File 63238.button-element.diff, 2.5 KB (added by , 5 months ago) |
|---|
-
src/js/_enqueues/vendor/plupload/handlers.js
420 420 target.parents( '.media-item' ).fadeOut( 200, function() { 421 421 $( this ).remove(); 422 422 } ); 423 } else if ( target.is( '.upload-flash-bypass a' ) || target.is( 'a.uploader-html' ) ) { // Switch uploader to html4.423 } else if ( target.is( '.upload-flash-bypass button' ) || target.is( 'a.uploader-html' ) ) { // Switch uploader to html4. 424 424 $( '#media-items, p.submit, span.big-file-warning' ).css( 'display', 'none' ); 425 425 switchUploader( 0 ); 426 426 e.preventDefault(); 427 } else if ( target.is( '.upload-html-bypass a' ) ) { // Switch uploader to multi-file.427 } else if ( target.is( '.upload-html-bypass button' ) ) { // Switch uploader to multi-file. 428 428 $( '#media-items, p.submit, span.big-file-warning' ).css( 'display', '' ); 429 429 switchUploader( 1 ); 430 430 e.preventDefault(); -
src/wp-admin/includes/media.php
3045 3045 <p class="upload-flash-bypass"> 3046 3046 <?php 3047 3047 printf( 3048 /* translators: 1: URL to browser uploader, 2: Additional link attributes. */ 3049 __( 'You are using the multi-file uploader. Problems? Try the <a href="%1$s" %2$s>browser uploader</a> instead.' ), 3050 $browser_uploader, 3051 'target="_blank"' 3048 /* translators: %s: HTML attributes for button. */ 3049 __( 'You are using the multi-file uploader. Problems? Try the <button %s>browser uploader</button> instead.' ), 3050 'type="button" class="button-link"' 3052 3051 ); 3053 3052 ?> 3054 3053 </p> … … 3063 3062 function media_upload_html_bypass() { 3064 3063 ?> 3065 3064 <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>.' ); ?> 3065 <?php 3066 printf( 3067 /* translators: %s: HTML attributes for button. */ 3068 __( 'You are using the browser’s built-in file uploader. The WordPress uploader includes multiple file selection and drag and drop capability. <button %s>Switch to the multi-file uploader</button>.' ), 3069 'type="button" class="button-link"' 3070 ); 3071 ?> 3067 3072 </p> 3068 3073 <?php 3069 3074 }