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	2018-05-01 15:31:24.000000000 -0700
+++ wordpress/wp-includes/js/tinymce/plugins/media/plugin.js	2018-05-18 11:22:34.648500557 -0700
@@ -166,7 +166,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];
@@ -424,14 +423,6 @@
     var allowFullscreen = data.allowFullscreen ? ' allowFullscreen="1"' : '';
     return '<iframe src="' + data.source1 + '" width="' + data.width + '" height="' + data.height + '"' + allowFullscreen + '></iframe>';
   };
-  var getFlashHtml = function (data) {
-    var 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>';
-    return html;
-  };
   var getAudioHtml = function (data, audioTemplateCallback) {
     if (audioTemplateCallback) {
       return audioTemplateCallback(data);
@@ -494,8 +485,6 @@
       });
       if (data.type === 'iframe') {
         return getIframeHtml(data);
-      } else if (data.source1mime === 'application/x-shockwave-flash') {
-        return getFlashHtml(data);
       } else if (data.source1mime.indexOf('audio') !== -1) {
         return getAudioHtml(data, audioTemplateCallback);
       } else if (data.type === 'script') {
Binary files wordpress.orig/wp-includes/js/tinymce/wp-tinymce.js.gz and wordpress/wp-includes/js/tinymce/wp-tinymce.js.gz differ