Blob Blame History Raw
diff -Nur wordpress.orig/wp-includes/js/tinymce/plugins/media/plugin.js wordpress/wp-includes/js/tinymce/plugins/media/plugin.js
--- wordpress.orig/wp-includes/js/tinymce/plugins/media/plugin.js	2017-04-12 19:52:38.000000000 -0600
+++ wordpress/wp-includes/js/tinymce/plugins/media/plugin.js	2017-04-22 11:28:42.415026834 -0600
@@ -438,7 +438,6 @@
 			'mp4': 'video/mp4',
 			'webm': 'video/webm',
 			'ogg': 'video/ogg',
-			'swf': 'application/x-shockwave-flash'
 		};
 		var fileEnd = url.toLowerCase().split('.').pop();
 		var mime = mimes[fileEnd];
@@ -583,18 +582,6 @@
 					'" width="' + data.width +
 					'" height="' + data.height +
 					'"' + allowFullscreen + '></iframe>';
-			} else if (data.source1mime === "application/x-shockwave-flash") {
-				html +=
-					'<object data="' + data.source1 +
-					'" width="' + data.width +
-					'" height="' + data.height +
-					'" type="application/x-shockwave-flash">';
-
-				if (data.poster) {
-					html += '<img src="' + data.poster + '" width="' + data.width + '" height="' + data.height + '" />';
-				}
-
-				html += '</object>';
 			} else if (data.source1mime.indexOf('audio') !== -1) {
 				if (editor.settings.audio_template_callback) {
 					html = editor.settings.audio_template_callback(data);