From adc2e14841acdda6ba2556f96af5981f4fd3c05d Mon Sep 17 00:00:00 2001 From: Neycho Kalaydzhiev Date: Wed, 21 Jun 2023 14:06:05 +0300 Subject: [PATCH 1/7] Replaced html5.js with a comment Removed IE code from header.php Removed IE code from editor-style.css Removed negative paddings and gradient IE code from style.css and dark.css --- src/wp-content/themes/twentyeleven/colors/dark.css | 1 - .../themes/twentyeleven/editor-style.css | 3 --- src/wp-content/themes/twentyeleven/header.php | 14 -------------- src/wp-content/themes/twentyeleven/js/html5.js | 9 +-------- src/wp-content/themes/twentyeleven/readme.txt | 4 ---- src/wp-content/themes/twentyeleven/style.css | 3 --- 6 files changed, 1 insertion(+), 33 deletions(-) diff --git a/src/wp-content/themes/twentyeleven/colors/dark.css b/src/wp-content/themes/twentyeleven/colors/dark.css index d2868d67ad643..996aeb362d7fb 100644 --- a/src/wp-content/themes/twentyeleven/colors/dark.css +++ b/src/wp-content/themes/twentyeleven/colors/dark.css @@ -334,7 +334,6 @@ section.feature-image.large img { background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Opera11.10+ */ background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* IE10+ */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=0 ); /* IE6-9 */ background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* W3C */ } .feature-slider a { diff --git a/src/wp-content/themes/twentyeleven/editor-style.css b/src/wp-content/themes/twentyeleven/editor-style.css index 77342bf691c8e..dedb14888a4c1 100644 --- a/src/wp-content/themes/twentyeleven/editor-style.css +++ b/src/wp-content/themes/twentyeleven/editor-style.css @@ -228,9 +228,6 @@ td { } /* Images */ -img.size-full { - width: auto; /* Prevent stretching of full-size images in IE8 */ -} img.wp-smiley { border: none; margin-bottom: 0; diff --git a/src/wp-content/themes/twentyeleven/header.php b/src/wp-content/themes/twentyeleven/header.php index dc404ab0b0742..2f6456cf941fa 100644 --- a/src/wp-content/themes/twentyeleven/header.php +++ b/src/wp-content/themes/twentyeleven/header.php @@ -9,18 +9,7 @@ * @since Twenty Eleven 1.0 */ ?> - - - - > - @@ -51,9 +40,6 @@ - article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}"; -c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| -"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f); -if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d Date: Mon, 16 Sep 2024 19:53:46 -0500 Subject: [PATCH 2/7] Keep HTML5 Shiv intact --- src/wp-content/themes/twentyeleven/js/html5.js | 9 ++++++++- src/wp-content/themes/twentyeleven/readme.txt | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentyeleven/js/html5.js b/src/wp-content/themes/twentyeleven/js/html5.js index 65e246bb47b3e..6168aacd5ed78 100644 --- a/src/wp-content/themes/twentyeleven/js/html5.js +++ b/src/wp-content/themes/twentyeleven/js/html5.js @@ -1 +1,8 @@ -// This theme does not support old versions of Microsoft Internet Explorer anymore. +/* + HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed +*/ +(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); +a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x"; +c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| +"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f); +if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d Date: Tue, 17 Sep 2024 07:42:09 -0500 Subject: [PATCH 3/7] Remove CSS --- .../themes/twentyeleven/functions.php | 1 - src/wp-content/themes/twentyeleven/rtl.css | 8 ----- src/wp-content/themes/twentyeleven/style.css | 36 ------------------- 3 files changed, 45 deletions(-) diff --git a/src/wp-content/themes/twentyeleven/functions.php b/src/wp-content/themes/twentyeleven/functions.php index e9eb530af7091..21c14de5eca02 100644 --- a/src/wp-content/themes/twentyeleven/functions.php +++ b/src/wp-content/themes/twentyeleven/functions.php @@ -343,7 +343,6 @@ function twentyeleven_header_style() { #site-title, #site-description { position: absolute; - clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); } span { margin-right: 50px; } } - -/* =IE7 ------------------------------------------------ */ - -#ie7 section.recent-posts { - margin-right: 0; - margin-left: 7.6%; -} diff --git a/src/wp-content/themes/twentyeleven/style.css b/src/wp-content/themes/twentyeleven/style.css index d421b03845eea..8bb309ecc45da 100644 --- a/src/wp-content/themes/twentyeleven/style.css +++ b/src/wp-content/themes/twentyeleven/style.css @@ -502,7 +502,6 @@ a:hover { .assistive-text, .screen-reader-text { position: absolute !important; - clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); overflow: hidden; height: 1px; @@ -747,7 +746,6 @@ a.assistive-text:focus, border-bottom: none; } .blog .sticky .entry-header .entry-meta { - clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); position: absolute !important; } @@ -901,7 +899,6 @@ img[class*="attachment-"] { img.size-full, img.size-large { max-width: 97.5%; - width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */ height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */ } .entry-content img.wp-smiley { @@ -1450,7 +1447,6 @@ section.featured-post .hentry { margin: 0; } section.featured-post .entry-meta { - clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); position: absolute !important; } @@ -2812,35 +2808,3 @@ p.comment-form-comment { color: #666; } } - - -/* =IE7 ------------------------------------------------ */ - -#ie7 article.intro { - margin-left: -7.6%; - margin-right: -7.6%; - max-width: 1000px; -} -#ie7 .featured-posts { - margin: 0 -7.6%; -} -#ie7 .featured-post { - margin-left: 0; - margin-right: 0; - max-width: 100%; -} -#ie7 section.recent-posts { - margin-right: 7.6%; -} - - -/* =IE8 ------------------------------------------------ */ - -#ie8 section.feature-image.large img { - width: auto; -} -#ie8 section.featured-post .attachment-small-feature { - max-width: none; -} From 818315697e744f0757b02e40a9445e744f1951ed Mon Sep 17 00:00:00 2001 From: "Stephen A. Bernhardt" Date: Fri, 17 Oct 2025 09:02:59 -0500 Subject: [PATCH 4/7] remove `-ms-linear-gradient` from `dark.css` --- src/wp-content/themes/twentyeleven/colors/dark.css | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wp-content/themes/twentyeleven/colors/dark.css b/src/wp-content/themes/twentyeleven/colors/dark.css index 1a3d2e2ea5ff9..b7d6b845e35b8 100644 --- a/src/wp-content/themes/twentyeleven/colors/dark.css +++ b/src/wp-content/themes/twentyeleven/colors/dark.css @@ -319,7 +319,6 @@ section.feature-image.large img { background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,1))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Opera11.10+ */ - background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* W3C */ } .feature-slider a { From 7530c3451c0229ab33f5cff126d3827725f17af7 Mon Sep 17 00:00:00 2001 From: "Stephen A. Bernhardt" Date: Fri, 17 Oct 2025 09:10:09 -0500 Subject: [PATCH 5/7] Remove `-ms-linear-gradient` from `style.css` --- src/wp-content/themes/twentyeleven/style.css | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wp-content/themes/twentyeleven/style.css b/src/wp-content/themes/twentyeleven/style.css index bca91ebe4b657..8ba57d1d13e90 100644 --- a/src/wp-content/themes/twentyeleven/style.css +++ b/src/wp-content/themes/twentyeleven/style.css @@ -1585,7 +1585,6 @@ section.feature-image.large img { background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(255,255,255,1))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Opera11.10+ */ - background: -ms-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C */ width: 100%; height: 45px; From 851b775f01a703b9c31d95a3ffadca84ca8826c3 Mon Sep 17 00:00:00 2001 From: "Stephen A. Bernhardt" Date: Fri, 17 Oct 2025 09:11:50 -0500 Subject: [PATCH 6/7] Replace contents of `html5.js` --- src/wp-content/themes/twentyeleven/js/html5.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/wp-content/themes/twentyeleven/js/html5.js b/src/wp-content/themes/twentyeleven/js/html5.js index 6168aacd5ed78..960aefbe71b63 100644 --- a/src/wp-content/themes/twentyeleven/js/html5.js +++ b/src/wp-content/themes/twentyeleven/js/html5.js @@ -1,8 +1 @@ -/* - HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed -*/ -(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); -a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x"; -c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| -"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f); -if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d Date: Fri, 17 Oct 2025 09:12:53 -0500 Subject: [PATCH 7/7] Remove HTML5 Shiv credit from `readme.txt` --- src/wp-content/themes/twentyeleven/readme.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/wp-content/themes/twentyeleven/readme.txt b/src/wp-content/themes/twentyeleven/readme.txt index 0cfcdb8c1f726..a95b76b303640 100644 --- a/src/wp-content/themes/twentyeleven/readme.txt +++ b/src/wp-content/themes/twentyeleven/readme.txt @@ -38,10 +38,6 @@ GNU General Public License for more details. Twenty Eleven Theme bundles the following third-party resources: -HTML5 Shiv v3.7.0, Copyright 2014 Alexander Farkas -Licenses: MIT/GPL2 -Source: https://github.com/aFarkas/html5shiv - Images "Yellow Flower Photo" by Bernard Spragg. CC0. https://stocksnap.io/photo/yellow-flower-GWT9JVALSV "People Woman Photo" by Brooke Cagle. CC0. https://stocksnap.io/photo/people-woman-MU7G67710S