Changeset 61099
- Timestamp:
- 10/30/2025 10:30:18 PM (6 weeks ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
-
js/_enqueues/vendor/plupload/handlers.js (modified) (2 diffs)
-
wp-admin/includes/media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/vendor/plupload/handlers.js
r59960 r61099 277 277 if ( typeof( uploader ) == 'object' ) 278 278 uploader.refresh(); 279 280 jQuery( '#plupload-browse-button' ).trigger( 'focus' ); 279 281 } else { 280 282 setUserSetting( 'uploader', '1' ); // 1 == html uploader. 281 283 jQuery( '.media-upload-form' ).addClass( 'html-uploader' ); 284 jQuery( '#async-upload' ).trigger( 'focus' ); 282 285 } 283 286 } … … 421 424 $( this ).remove(); 422 425 } ); 423 } else if ( target.is( '.upload-flash-bypass a' ) || target.is( 'a.uploader-html' ) ) { // Switch uploader to html4.426 } else if ( target.is( '.upload-flash-bypass button' ) || target.is( 'a.uploader-html' ) ) { // Switch uploader to html4. 424 427 $( '#media-items, p.submit, span.big-file-warning' ).css( 'display', 'none' ); 425 428 switchUploader( 0 ); 426 429 e.preventDefault(); 427 } else if ( target.is( '.upload-html-bypass a' ) ) { // Switch uploader to multi-file.430 } else if ( target.is( '.upload-html-bypass button' ) ) { // Switch uploader to multi-file. 428 431 $( '#media-items, p.submit, span.big-file-warning' ).css( 'display', '' ); 429 432 switchUploader( 1 ); -
trunk/src/wp-admin/includes/media.php
r61098 r61099 3029 3029 * 3030 3030 * @since 2.6.0 3031 *3032 * @global int $post_ID3033 3031 */ 3034 3032 function media_upload_flash_bypass() { 3035 $browser_uploader = admin_url( 'media-new.php?browser-uploader' );3036 3037 $post = get_post();3038 if ( $post ) {3039 $browser_uploader .= '&post_id=' . (int) $post->ID;3040 } elseif ( ! empty( $GLOBALS['post_ID'] ) ) {3041 $browser_uploader .= '&post_id=' . (int) $GLOBALS['post_ID'];3042 }3043 3044 3033 ?> 3045 3034 <p class="upload-flash-bypass"> 3046 3035 <?php 3047 3036 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"' 3037 /* translators: %s: HTML attributes for button. */ 3038 __( 'You are using the multi-file uploader. Problems? Try the <button %s>browser uploader</button> instead.' ), 3039 'type="button" class="button-link"' 3052 3040 ); 3053 3041 ?> … … 3064 3052 ?> 3065 3053 <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>.' ); ?> 3054 <?php 3055 printf( 3056 /* translators: %s: HTML attributes for button. */ 3057 __( '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>.' ), 3058 'type="button" class="button-link"' 3059 ); 3060 ?> 3067 3061 </p> 3068 3062 <?php
Note: See TracChangeset
for help on using the changeset viewer.