Make WordPress Core


Ignore:
Timestamp:
02/27/2014 08:00:55 PM (12 years ago)
Author:
azaozz
Message:

Upgrade Plupload to 2.1.1, props kovshenin, see #25663

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r27127 r27316  
    17611761
    17621762$plupload_init = array(
    1763     'runtimes' => 'html5,silverlight,flash,html4',
    1764     'browse_button' => 'plupload-browse-button',
    1765     'container' => 'plupload-upload-ui',
    1766     'drop_element' => 'drag-drop-area',
    1767     'file_data_name' => 'async-upload',
    1768     'multiple_queues' => true,
    1769     'max_file_size' => $max_upload_size . 'b',
    1770     'url' => $upload_action_url,
    1771     'flash_swf_url' => includes_url('js/plupload/plupload.flash.swf'),
    1772     'silverlight_xap_url' => includes_url('js/plupload/plupload.silverlight.xap'),
    1773     'filters' => array( array('title' => __( 'Allowed Files' ), 'extensions' => '*') ),
    1774     'multipart' => true,
    1775     'urlstream_upload' => true,
    1776     'multipart_params' => $post_params
     1763    'runtimes'            => 'html5,silverlight,flash,html4',
     1764    'browse_button'       => 'plupload-browse-button',
     1765    'container'           => 'plupload-upload-ui',
     1766    'drop_element'        => 'drag-drop-area',
     1767    'file_data_name'      => 'async-upload',
     1768    'url'                 => $upload_action_url,
     1769    'flash_swf_url'       => includes_url( 'js/plupload/Moxie.swf' ),
     1770    'silverlight_xap_url' => includes_url( 'js/plupload/Moxie.xap' ),
     1771    'filters' => array(
     1772        'max_file_size'   => $max_upload_size . 'b',
     1773    ),
     1774    'multipart_params'    => $post_params,
    17771775);
    17781776
     
    18611859<span class="max-upload-size"><?php printf( __( 'Maximum upload file size: %d%s.' ), esc_html($upload_size_unit), esc_html($sizes[$u]) ); ?></span>
    18621860<?php
    1863 if ( ($is_IE || $is_opera) && $max_upload_size > 100 * 1024 * 1024 ) { ?>
    1864     <span 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.'); ?></span>
    1865 <?php }
    18661861
    18671862    /**
Note: See TracChangeset for help on using the changeset viewer.