Ticket #25663: 25663.3.diff
File 25663.3.diff, 2.2 KB (added by , 11 years ago) |
---|
-
src/wp-includes/js/plupload/handlers.js
400 400 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 405 415 $('#image_resize').bind('change', function() { … … 430 440 $('#drag-drop-area').unbind('.wp-uploader'); 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 437 448 uploader.init(); -
src/wp-includes/js/plupload/wp-plupload.js
25 25 */ 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', 30 31 browser: 'browse_button', … … 85 86 return; 86 87 } 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; 95 } 96 88 97 this.uploader = new plupload.Uploader( this.plupload ); 89 98 delete this.plupload; 90 99