From be5ffd3f53af427d172a89332242eaf668ba3441 Mon Sep 17 00:00:00 2001 From: James Mead Date: Sat, 1 Jul 2017 15:12:53 +0100 Subject: [PATCH] Remove unused Wordpress-specific JS This code seems to be related to this Wordpress feature [1] which only seems relevant where users are adding e.g. comments to a site. [1]: https://make.wordpress.org/core/2015/10/28/new-embeds-feature-in-wordpress-4-4/ --- _layouts/default.html | 1 - _layouts/home.html | 1 - wp/wp-includes/js/wp-embed.min.js | 1 - 3 files changed, 3 deletions(-) delete mode 100644 wp/wp-includes/js/wp-embed.min.js diff --git a/_layouts/default.html b/_layouts/default.html index 090d192..7a4d994 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -38,7 +38,6 @@ {% include footer.html %} - diff --git a/_layouts/home.html b/_layouts/home.html index 88c3566..11a3a25 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -63,7 +63,6 @@ {% include footer.html %} - diff --git a/wp/wp-includes/js/wp-embed.min.js b/wp/wp-includes/js/wp-embed.min.js deleted file mode 100644 index 69c1f01..0000000 --- a/wp/wp-includes/js/wp-embed.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document); \ No newline at end of file