#41755 closed task (blessed) (fixed)
Remove the Flash and Silverlight options from Plupload
Reported by: | azaozz | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Upload | Keywords: | has-patch needs-testing 2nd-opinion |
Focuses: | Cc: |
Description
Plupload includes Flash and Silverlight as fallbacks when the browser doesn't support HTML 5.0. Since we dropped support for old IE, all currently supported browsers use HTML 5.0. Even if Plupload is used in an old unsupported browser, it will revert to using "HTML 4" (a simple file
field).
Attachments (3)
Change History (19)
#2
@
4 years ago
In 41755.2.patch: also add plupload.flash.swf and plupload.silverlight.xap to $_old_files to be deleted when upgrading.
The patch also includes the last GPLv2 version of Plupload.
#4
@
4 years ago
- Owner set to azaozz
- Resolution set to fixed
- Status changed from new to closed
In 41328:
#5
@
4 years ago
Committed this to make it easier for testing, and also to be able to do other fixes for plupload.js and moxie.js. Feel free to reopen if any bugs/errors.
#6
follow-up:
↓ 7
@
4 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Added a switch to be able to actually debug with the individual scripts when SCRIPT_DEBUG is enabled.
#7
in reply to:
↑ 6
@
4 years ago
- Keywords 2nd-opinion added
Replying to gmariani405:
Thanks for the patch!
Was thinking about this too. If we want it, would probably be better to drop plupload.full.min.js
and keep the 'plupload'
dependency on moxie.js, something like:
$scripts->add( 'moxie', "/wp-includes/js/plupload/moxie$suffix.js", array(), '1.3.5' ); $scripts->add( 'plupload', "/wp-includes/js/plupload/plupload$suffix.js", array( 'moxie' ), '2.1.9' );
Not really sure if that's needed. Plupload is an external package/library. There are changes to the original files, so we added our versions as non-minified (readable) files, but we aren't going to "actively develop" it in core.
#8
follow-ups:
↓ 9
↓ 12
@
4 years ago
When running grunt precommit
I get 1 test failure:
1) Tests_Admin_IncludesUpdateCore::test_new_files_are_not_in_old_files_array_compiled with data set #559 ('wp-includes/js/plupload/plupload.js') Failed asserting that file "/ ... /wordpress-develop/public_html/build/wp-includes/js/plupload/plupload.js" does not exist.
I guess because this change re-introduces wp-includes/js/plupload/plupload.js
which is listed in the $_old_files
since WP 3.9 ? See [28085]
#9
in reply to:
↑ 8
@
4 years ago
Replying to afercia:
When running
grunt precommit
I get 1 test failure:
1) Tests_Admin_IncludesUpdateCore::test_new_files_are_not_in_old_files_array_compiled with data set #559 ('wp-includes/js/plupload/plupload.js') Failed asserting that file "/ ... /wordpress-develop/public_html/build/wp-includes/js/plupload/plupload.js" does not exist.I guess because this change re-introduces
wp-includes/js/plupload/plupload.js
which is listed in the$_old_files
since WP 3.9 ? See [28085]
Note the path @afercia of the file is in the build
folder, removing your local /build
folder via rm -rf build/
or running grunt
will clean out the build folder and remove that file that is currently causes the test to fail. Tests should pass fine after that.
#10
follow-up:
↓ 11
@
4 years ago
@netweb thanks, I've tried that but grunt precommit
builds the JS files and then runs the test, so it still fails :)
#11
in reply to:
↑ 10
@
4 years ago
Replying to afercia:
@netweb thanks, I've tried that but
grunt precommit
builds the JS files and then runs the test, so it still fails :)
Right you are :+1: , I hadn't re-run grunt build
myself after removing the the build/
folder ;)
#12
in reply to:
↑ 8
@
4 years ago
Replying to afercia:
I guess because this change re-introduces
wp-includes/js/plupload/plupload.js
which is listed in the$_old_files
since WP 3.9 ? See [28085]
Good catch, thanks! Will remove that file from $_old_files.
grunt precommit
throws weird errors here, will need to fix it somehow (it requires "global" svn to be installed, but many apps (IDEs, Tortoisesvn, etc.) have "local" copies, and sometimes the svn versions differ and... all gets really messy).
In 41755.patch:
html5,html4
for theruntimes
setting.Tested in latest Firefox, Edge, and Chrome, also in Edge emulation of IE11, 10, and 8 (just in case). All seems to be working properly.