Changeset 27662
- Timestamp:
- 03/23/2014 11:44:20 PM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r27626 r27662 1761 1761 1762 1762 $plupload_init = array( 1763 'runtimes' => 'html5, silverlight,flash,html4',1763 'runtimes' => 'html5,flash,silverlight,html4', 1764 1764 'browse_button' => 'plupload-browse-button', 1765 1765 'container' => 'plupload-upload-ui', -
trunk/src/wp-includes/js/plupload/handlers.js
r27318 r27662 401 401 // init and set the uploader 402 402 uploader_init = function() { 403 var isIE = navigator.userAgent.indexOf('Trident/') != -1 || navigator.userAgent.indexOf('MSIE ') != -1; 404 405 // Make sure flash sends cookies (seems in IE it does whitout switching to urlstream mode) 406 if ( ! isIE && 'flash' === plupload.predictRuntime( wpUploaderInit ) && 407 ( ! wpUploaderInit.required_features || ! wpUploaderInit.required_features.hasOwnProperty( 'send_binary_string' ) ) ) { 408 409 wpUploaderInit.required_features = wpUploaderInit.required_features || {}; 410 wpUploaderInit.required_features.send_binary_string = true; 411 } 412 403 413 uploader = new plupload.Uploader(wpUploaderInit); 404 414 … … 431 441 } 432 442 433 if ( up.runtime == 'html4' )443 if ( up.runtime === 'html4' ) { 434 444 $('.upload-flash-bypass').hide(); 445 } 435 446 }); 436 447 -
trunk/src/wp-includes/js/plupload/wp-plupload.js
r27343 r27662 26 26 Uploader = function( options ) { 27 27 var self = this, 28 isIE = navigator.userAgent.indexOf('Trident/') != -1 || navigator.userAgent.indexOf('MSIE ') != -1, 28 29 elements = { 29 30 container: 'container', … … 84 85 if ( ! ( this.browser && this.browser.length ) && ! ( this.dropzone && this.dropzone.length ) ) { 85 86 return; 87 } 88 89 // Make sure flash sends cookies (seems in IE it does whitout switching to urlstream mode) 90 if ( ! isIE && 'flash' === plupload.predictRuntime( this.plupload ) && 91 ( ! this.plupload.required_features || ! this.plupload.required_features.hasOwnProperty( 'send_binary_string' ) ) ) { 92 93 this.plupload.required_features = this.plupload.required_features || {}; 94 this.plupload.required_features.send_binary_string = true; 86 95 } 87 96 -
trunk/src/wp-includes/media.php
r27657 r27662 2177 2177 2178 2178 $defaults = array( 2179 'runtimes' => 'html5, silverlight,flash,html4',2179 'runtimes' => 'html5,flash,silverlight,html4', 2180 2180 'file_data_name' => 'async-upload', // key passed to $_FILE. 2181 2181 'url' => admin_url( 'async-upload.php', 'relative' ),
Note: See TracChangeset
for help on using the changeset viewer.