Ticket #22604: 22604.2.diff
File 22604.2.diff, 2.3 KB (added by , 12 years ago) |
---|
-
wp-includes/media.php
1254 1254 'multipart' => true, 1255 1255 'urlstream_upload' => true, 1256 1256 ); 1257 1257 1258 1258 // Multi-file uploading doesn't currently work in iOS Safari, 1259 1259 // single-file allows the built-in camera to be used as source for images 1260 1260 if ( wp_is_mobile() ) … … 1537 1537 <div class="upload-inline-status"></div> 1538 1538 1539 1539 <div class="post-upload-ui"> 1540 <?php do_action( 'pre-upload-ui' ); ?>1541 <?php do_action( 'pre-plupload-upload-ui' ); ?>1542 <?php do_action( 'post-plupload-upload-ui' ); ?>1540 <?php 1541 do_action( 'pre-upload-ui' ); 1542 do_action( 'pre-plupload-upload-ui' ); 1543 1543 1544 <?php 1544 remove_action('post-plupload-upload-ui', 'media_upload_flash_bypass'); 1545 do_action( 'post-plupload-upload-ui' ); 1546 add_action('post-plupload-upload-ui', 'media_upload_flash_bypass'); 1547 1545 1548 $upload_size_unit = $max_upload_size = wp_max_upload_size(); 1546 1549 $byte_sizes = array( 'KB', 'MB', 'GB' ); 1547 1550 … … 1562 1565 printf( __( 'Maximum upload file size: %d%s.' ), esc_html($upload_size_unit), esc_html($byte_sizes[$u]) ); 1563 1566 ?></p> 1564 1567 1565 <?php if ( ( $GLOBALS['is_IE'] || $GLOBALS['is_opera']) && $max_upload_size > 100 * 1024 * 1024 ) : ?> 1566 <p class="big-file-warning"><?php _e('Your browser has some limitations uploading large files with the multi-file uploader. Please use the browser uploader for files over 100MB.'); ?></p> 1568 <?php if ( ( $GLOBALS['is_IE'] || $GLOBALS['is_opera']) && $max_upload_size > 100 * 1024 * 1024 ) : 1569 $browser_uploader = admin_url( 'media-new.php?browser-uploader' ); 1570 if ( $post = get_post() ) 1571 $browser_uploader .= '&post_id=' . intval( $post->ID ); 1572 elseif ( ! empty( $GLOBALS['post_ID'] ) ) 1573 $browser_uploader .= '&post_id=' . intval( $GLOBALS['post_ID'] ); 1574 ?> 1575 <p class="big-file-warning"><?php printf( __( 'Your browser has some limitations uploading large files with the multi-file uploader. Please use the <a href="%1$s" target="%2$s">browser uploader</a> for files over 100MB.' ), 1576 $browser_uploader, '_blank' ); ?></p> 1567 1577 <?php endif; ?> 1568 1578 1569 1579 <?php do_action( 'post-upload-ui' ); ?>