Administration: Remove any CSS related to Internet Explorer versions 6 – 10.

In WordPress 3.2 support for IE6 was dropped, IE7 followed a few versions later. With the 4.8 release, WordPress officially ended support for Internet Explorer versions 8, 9, and 10. Yet, we still have shipped CSS for the unsupported IE versions....until now! Goodbye to ie.css and star hacks!

* Removes ie.css and `ie` style handle.
* Removes IE specific class names and any related CSS.
* Drops support for IE8 and older in `wp_customize_support_script()`.
* Updates compatibility mode for CSS minification to `ie11`.

Props ayeshrajans, isabel_brison, afercia, netweb, peterwilsoncc, ocean90.
Fixes #17232, #46015.

git-svn-id: https://develop.svn.wordpress.org/trunk@47771 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling 2020-05-06 20:13:38 +00:00
parent 26439dd788
commit 3d31284c5e
26 changed files with 28 additions and 1063 deletions

View File

@ -413,7 +413,7 @@ module.exports = function(grunt) {
},
cssmin: {
options: {
compatibility: 'ie7'
compatibility: 'ie11'
},
core: {
expand: true,

View File

@ -474,7 +474,6 @@ $document.ready( function() {
currentPage = pageInput.val(),
isIOS = /iPhone|iPad|iPod/.test( navigator.userAgent ),
isAndroid = navigator.userAgent.indexOf( 'Android' ) !== -1,
isIE8 = $( document.documentElement ).hasClass( 'ie8' ),
$adminMenuWrap = $( '#adminmenuwrap' ),
$wpwrap = $( '#wpwrap' ),
$adminmenu = $( '#adminmenu' ),
@ -1060,7 +1059,7 @@ $document.ready( function() {
var windowPos = $window.scrollTop(),
resizing = ! event || event.type !== 'scroll';
if ( isIOS || isIE8 || $adminmenu.data( 'wp-responsive' ) ) {
if ( isIOS || $adminmenu.data( 'wp-responsive' ) ) {
return;
}

View File

@ -22,7 +22,6 @@
shortlink,
skipLink,
mobileEvent,
fontFaceRegex,
adminBarSearchInput,
i;
@ -37,7 +36,6 @@
shortlink = document.getElementById( 'wp-admin-bar-get-shortlink' );
skipLink = adminBar.querySelector( '.screen-reader-shortcut' );
mobileEvent = /Mobile\/.+Safari/.test( navigator.userAgent ) ? 'touchstart' : 'click';
fontFaceRegex = /Android (1.0|1.1|1.5|1.6|2.0|2.1)|Nokia|Opera Mini|w(eb)?OSBrowser|webOS|UCWEB|Windows Phone OS 7|XBLWP7|ZuneWP7|MSIE 7/;
// Remove nojs class after the DOM is loaded.
removeClass( adminBar, 'nojs' );
@ -111,15 +109,6 @@
window.scrollBy( 0, -32 );
}
// Add no-font-face class to body if needed.
if (
navigator.userAgent &&
fontFaceRegex.test( navigator.userAgent ) &&
! hasClass( document.body, 'no-font-face' )
) {
addClass( document.body, 'no-font-face' );
}
// Clear sessionStorage on logging out.
if ( adminBarLogout ) {
adminBarLogout.addEventListener( 'click', emptySessionStorage );

View File

@ -75,7 +75,6 @@ _wp_admin_html_begin();
<?php
wp_enqueue_style( 'colors' );
wp_enqueue_style( 'ie' );
wp_enqueue_script( 'utils' );
wp_enqueue_script( 'svg-painter' );

View File

@ -391,11 +391,6 @@ div.wp-menu-image:before {
color: #00b9eb;
}
/* IE8 doesn't redraw the pseudo elements unless you make a change to the content, this restore the initial color after hover */
.ie8 #adminmenu li.opensub div.wp-menu-image:before {
color: #a0a5aa;
}
.folded #adminmenu div.wp-menu-image {
width: 35px;
height: 30px;
@ -407,20 +402,6 @@ div.wp-menu-image:before {
height: 34px;
}
/* No @font-face support */
.no-font-face #adminmenu .wp-menu-image {
display: none;
}
.no-font-face #adminmenu div.wp-menu-name {
padding: 8px 12px;
}
.no-font-face.auto-fold #adminmenu .wp-menu-name {
margin-left: 0;
}
/* End no @font-face support */
/* Sticky admin menu */
.sticky-menu #adminmenuwrap {
position: fixed;

View File

@ -270,8 +270,7 @@ ul#adminmenu > li.current > a.current:after {
#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,
#adminmenu li:hover div.wp-menu-image:before,
#adminmenu li a:focus div.wp-menu-image:before,
#adminmenu li.opensub div.wp-menu-image:before,
.ie8 #adminmenu li.opensub div.wp-menu-image:before {
#adminmenu li.opensub div.wp-menu-image:before {
color: $menu-current-icon;
}

View File

@ -279,10 +279,6 @@ a:focus .media-icon img,
outline: 1px solid transparent;
}
.ie8 a:focus {
outline: #5b9dd9 solid 1px;
}
#adminmenu a:focus {
box-shadow: none;
/* Only visible in Windows High Contrast mode */
@ -1441,10 +1437,6 @@ div.error p,
0 0 2px 1px rgba(30, 140, 190, 0.8);
}
.ie8 .notice-dismiss:focus {
outline: 1px solid #5b9dd9;
}
.notice-success,
div.updated {
border-left-color: #46b450;
@ -1766,10 +1758,6 @@ form.upgrade .hint {
font-weight: 600;
}
.ie8 #screen-options-wrap legend {
color: inherit;
}
.metabox-prefs label {
display: inline-block;
padding-right: 15px;
@ -2247,13 +2235,6 @@ h1.nav-tab-wrapper, /* Back-compat for pre-4.4 */
clear: both;
}
.ie8 .nav-tab-wrapper {
/* contain floats establishing a new block formatting context */
display: inline-block;
width: 100%;
vertical-align: top;
}
/*------------------------------------------------------------------------------
26.0 - Misc
------------------------------------------------------------------------------*/

View File

@ -475,10 +475,6 @@
-moz-osx-font-smoothing: grayscale;
}
.ie8 .menu-item-bar .item-delete:before {
top: -10px;
}
.menu-item-bar .item-delete:hover,
.menu-item-bar .item-delete:focus {
box-shadow: none;

View File

@ -38,24 +38,6 @@
border: none !important;
}
.ie8 #wpbody-content #dashboard-widgets .postbox-container {
width: 49.5%;
}
.ie8 #wpbody-content #dashboard-widgets #postbox-container-2,
.ie8 #wpbody-content #dashboard-widgets #postbox-container-3,
.ie8 #wpbody-content #dashboard-widgets #postbox-container-4 {
float: right;
width: 50.5%;
}
.ie8 #dashboard-widgets #postbox-container-3 .empty-container,
.ie8 #dashboard-widgets #postbox-container-4 .empty-container {
border: 0 none;
height: 0;
min-height: 0;
}
#dashboard-widgets-wrap {
overflow: hidden;
margin: 0 -8px;
@ -180,10 +162,6 @@
float: left;
}
.ie8 .welcome-panel .welcome-panel-column {
min-width: 230px;
}
.welcome-panel .welcome-panel-column:first-child {
width: 36%;
}

View File

@ -635,11 +635,6 @@ form#tags-filter {
max-width: 100%;
}
.ie8 #poststuff .inside #parent_id,
.ie8 #poststuff .inside #page_template {
width: 250px;
}
.post-attributes-label-wrapper {
margin-bottom: 0.5em;
}

View File

@ -1,764 +0,0 @@
/* Fixes for IE 7 bugs */
#dashboard-widgets form .input-text-wrap input,
#dashboard-widgets form .textarea-wrap textarea {
width: 99%;
}
#dashboard-widgets form #title {
width: 98%;
}
#wpbody-content #dashboard-widgets .postbox-container {
width: 49.5%;
}
#wpbody-content #dashboard-widgets #postbox-container-2,
#wpbody-content #dashboard-widgets #postbox-container-3,
#wpbody-content #dashboard-widgets #postbox-container-4 {
float: right;
width: 50.5%;
}
#dashboard-widgets #postbox-container-3 .empty-container,
#dashboard-widgets #postbox-container-4 .empty-container {
border: 0 none;
height: 0;
min-height: 0;
}
.wp-editor-wrap .wp-editor-tools,
.wp-editor-wrap .wp-switch-editor,
.wp-editor-wrap .wp-editor-tabs,
.wp-editor-wrap .wp-editor-container {
zoom: 100%;
}
.wp-editor-wrap .wp-editor-container textarea.wp-editor-area {
width: 97%;
}
#post-body.columns-2 #postbox-container-1 {
padding-left: 19px;
}
.welcome-panel .wp-badge {
position: absolute;
}
.welcome-panel .welcome-panel-column:first-child {
width: 35%;
}
#adminmenuback {
left: 0;
background-image: none;
}
#adminmenuwrap {
position: static;
}
#adminmenu {
position: relative;
}
#adminmenu,
#adminmenu a {
cursor: pointer;
}
#adminmenu li.wp-menu-separator,
#adminmenu li.wp-menu-separator-last {
font-size: 1px;
line-height: 1;
}
#adminmenu a.menu-top {
border-bottom: 0 none;
border-top: 1px solid #ddd;
}
#adminmenu .separator {
font-size: 1px;
line-height: 1px;
}
#adminmenu .wp-submenu {
left: 110px;
}
#adminmenu .wp-submenu ul {
margin: 0;
}
.folded #wpcontent,
.folded #wpfooter {
margin-left: 170px;
}
.folded #adminmenuback,
.folded #adminmenuwrap,
.folded #adminmenu,
.folded #adminmenu li.menu-top {
width: 150px;
}
.folded #adminmenu .wp-submenu {
border-top-color: transparent;
}
.folded #adminmenu .wp-menu-name {
display: block;
}
.folded #adminmenu .wp-submenu.sub-open,
.folded #adminmenu .opensub .wp-submenu {
left: 110px;
}
.folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu,
.folded #adminmenu .wp-has-current-submenu .wp-submenu {
top: -1px;
position: relative;
}
.folded #adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head {
background-color: transparent;
}
#adminmenu .wp-submenu .wp-submenu-head {
border-top-color: #ddd;
}
.folded #adminmenu .wp-submenu ul {
margin-left: 5px;
}
#adminmenu li.menu-top {
margin-bottom: -2px;
}
#adminmenu .wp-menu-arrow {
display: none !important;
}
.js.folded #adminmenu li.menu-top {
display: block;
zoom: 100%;
}
ul#adminmenu {
z-index: 99;
}
#adminmenu li.menu-top a.menu-top {
min-width: auto;
width: auto;
}
#wpcontent #adminmenu li.wp-has-current-submenu a.wp-has-submenu {
font-style: normal;
}
#wpcontent #adminmenu .wp-submenu li {
padding: 0;
}
#adminmenu li.wp-has-current-submenu .wp-submenu {
left: -40px;
}
#adminmenu .wp-menu-image {
display: none !important;
}
#adminmenu a.menu-top .wp-menu-name {
padding-left: 8px;
}
#collapse-menu {
line-height: 23px;
}
#wpadminbar .ab-comments-icon {
padding-top: 7px;
}
.theme-browser .theme {
width: 30%;
margin: 0 3% 4% 0;
cursor: auto;
}
.theme-browser .theme:hover,
.theme-browser .theme:focus {
cursor: auto;
}
.theme-browser .theme .theme-screenshot {
height: 180px;
}
.theme-browser .theme .theme-actions {
position: static;
background-color: #e8e8e8;
}
.theme-browser .theme .more-details {
display: none;
}
.plugins td,
.plugins th {
border-top: 1px solid #ddd;
}
table.fixed th,
table.fixed td {
border-top: 1px solid #ddd;
}
#wpbody-content input.button,
#wpbody-content input.button-primary {
overflow: visible;
}
#dashboard-widgets h3 a {
height: 14px;
line-height: 14px;
}
#dashboard_browser_nag {
color: #fff;
}
#dashboard_browser_nag .browser-icon {
position: relative;
}
.tablenav-pages .current-page {
vertical-align: middle;
}
#wpbody-content .postbox {
border: 1px solid #ddd;
}
#wpbody-content .postbox .hndle {
margin-bottom: -1px;
}
.major-publishing-actions,
.wp-submenu,
.wp-submenu li,
#template,
#template div,
#editcat,
#addcat {
zoom: 100%;
}
.wp-menu-arrow {
height: 28px;
}
.submitbox {
margin-top: 10px;
}
/* Inline Editor */
#wpbody-content .quick-edit-row-post .inline-edit-col-left {
width: 39%;
}
#wpbody-content .inline-edit-row-post .inline-edit-col-center {
width: 19%;
}
#wpbody-content .quick-edit-row-page .inline-edit-col-left {
width: 49%;
}
#wpbody-content .bulk-edit-row .inline-edit-col-left {
width: 29%;
}
.inline-edit-row .submit {
zoom: 100%;
}
.inline-edit-row fieldset label span.title {
display: block;
float: left;
width: 5em;
}
.inline-edit-row fieldset label span.input-text-wrap {
margin-left: 0;
zoom: 100%;
}
#wpbody-content .inline-edit-row fieldset label span.input-text-wrap input {
line-height: 130%;
}
#wpbody-content .inline-edit-row .input-text-wrap input {
width: 95%;
}
#wpbody-content .inline-edit-row .input-text-wrap input.inline-edit-password-input {
width: 8em;
}
/* end Inline Editor */
#titlediv #title {
width: 98%;
}
.button,
input[type="reset"],
input[type="button"],
input[type="submit"] {
padding: 0 8px;
line-height: 20px;
height: auto;
}
.button.button-large,
input[type="reset"].button-large,
input[type="button"].button-large,
input[type="submit"].button-large {
padding: 0 10px;
line-height: 24px;
height: auto;
}
.button.button-small,
input[type="reset"].button-small,
input[type="button"].button-small,
input[type="submit"].button-small {
padding: 0 6px;
line-height: 16px;
height: auto;
}
a.button {
margin: 1px;
padding: 1px 9px 2px;
}
a.button.button-large {
padding: 1px 11px 2px;
}
a.button.button-small {
padding: 1px 7px 2px;
}
#screen-options-wrap {
overflow: hidden;
}
#the-comment-list .comment-item,
#post-status-info,
#wpwrap,
#wrap,
#postdivrich,
#postdiv,
#poststuff,
.metabox-holder,
#titlediv,
#post-body,
#editorcontainer,
.tablenav,
.widget-liquid-left,
.widget-liquid-right,
#widgets-left,
.widgets-sortables,
#dragHelper,
.widget .widget-top,
.widget-control-actions,
.tagchecklist,
#col-container,
#col-left,
#col-right,
.fileedit-sub {
display: block;
zoom: 100%;
}
p.search-box {
position: static;
float: right;
margin: -3px 0 4px;
}
#widget-list .widget {
display: inline;
}
#editorcontainer #content {
overflow: auto;
margin: auto;
width: 98%;
}
form#template div {
width: 100%;
}
.wp-editor-container .quicktags-toolbar input {
overflow: visible;
padding: 0 4px;
}
#poststuff h2 {
font-size: 1.6em;
}
#poststuff .inside #parent_id,
#poststuff .inside #page_template,
.inline-edit-row #post_parent,
.inline-edit-row select[name="page_template"] {
width: 250px;
}
#submitdiv input,
#submitdiv select,
#submitdiv a.button {
position: relative;
}
#bh {
margin: 7px 10px 0 0;
float: right;
}
/* without this dashboard widgets appear in one column for some screen widths */
div#dashboard-widgets {
padding-right: 1px;
}
.tagchecklist > li, .tagchecklist .ntdelbutton {
display: inline-block;
display: block;
}
.tagchecklist .ntdelbutton:focus .remove-tag-icon:before {
outline: 1px solid #5b9dd9;
}
.tablenav .button,
.nav .button {
padding-top: 2px;
padding-bottom: 2px;
}
.tablenav select {
font-size: 13px;
display: inline-block;
vertical-align: top;
margin-top: 2px;
}
.tablenav .actions select {
width: 155px;
}
.subsubsub li {
display: inline;
}
table.ie-fixed {
table-layout: fixed;
}
.widefat tr,
.widefat th,
.widefat thead td,
.widefat tfoot td {
margin-bottom: 0;
border-spacing: 0;
}
.widefat th input,
.widefat thead td input,
.widefat tfoot td input {
margin: 0 0 0 5px;
}
.widefat thead .check-column,
.widefat tfoot .check-column {
padding-top: 6px;
}
.widefat tbody th.check-column,
.media.widefat tbody th.check-column {
padding: 4px 0 0;
}
.widefat {
empty-cells: show;
border-collapse: collapse;
}
.tablenav a.button {
display: inline-block;
padding: 2px 5px;
}
.inactive-sidebar .widgets-sortables {
padding-bottom: 8px;
}
#available-widgets .widget-holder {
padding-bottom: 65px;
}
#widgets-left .inactive {
padding-bottom: 10px;
}
.widget-liquid-right .widget,
.inactive-sidebar .widget {
position: relative;
}
.inactive-sidebar .widget {
display: block;
float: left;
}
#wpcontent .button-primary-disabled {
color: #9FD0D5;
background: #298CBA;
}
#the-comment-list .unapproved tr,
#the-comment-list .unapproved td {
background-color: #ffffe0;
}
.imgedit-submit {
width: 300px;
}
#nav-menus-frame,
#wpbody,
.menu li {
zoom: 100%;
}
#update-nav-menu #post-body {
overflow: hidden;
}
.menu li {
min-width: 100%;
}
.menu li.sortable-placeholder {
min-width: 400px;
}
.available-theme {
display: inline;
}
.available-theme ul {
margin: 0;
}
.available-theme .action-links li {
padding-right: 7px;
margin-right: 7px;
}
.about-wrap .three-col.about-updates .col-2 {
width: 15%;
}
.about-wrap .about-password-meter input {
width: 98%;
}
.revisions-tickmarks,
.revisions-tooltip {
display: none !important;
}
.revisions.pinned .revisions-controls {
position: relative;
}
input[type="password"],
.login form .input {
font-family: sans-serif;
}
/* TinyMCE icons */
.mce-btn i.mce-i-bold,
.mce-btn i.mce-i-italic,
.mce-btn i.mce-i-bullist,
.mce-btn i.mce-i-numlist,
.mce-btn i.mce-i-blockquote,
.mce-btn i.mce-i-alignleft,
.mce-btn i.mce-i-aligncenter,
.mce-btn i.mce-i-alignright,
.mce-btn i.mce-i-link,
.mce-btn i.mce-i-unlink,
.mce-btn i.mce-i-wp_more,
.mce-btn i.mce-i-strikethrough,
.mce-btn i.mce-i-spellchecker,
.mce-btn i.mce-i-fullscreen,
.mce-btn i.mce-i-wp_fullscreen,
.mce-btn i.mce-i-wp_adv,
.mce-btn i.mce-i-underline,
.mce-btn i.mce-i-alignjustify,
.mce-btn i.mce-i-forecolor,
.mce-btn i.mce-i-pastetext,
.mce-btn i.mce-i-pasteword,
.mce-btn i.mce-i-removeformat,
.mce-btn i.mce-i-charmap,
.mce-btn i.mce-i-outdent,
.mce-btn i.mce-i-indent,
.mce-btn i.mce-i-undo,
.mce-btn i.mce-i-redo,
.mce-btn i.mce-i-help,
.mce-btn i.mce-i-wp_help,
.mce-btn i.mce-i-wp-media-library,
.mce-btn i.mce-i-ltr,
.mce-btn i.mce-i-wp_page,
.mce-btn i.mce-i-hr,
.mce-close {
font-family: tinymce, Arial;
font-style: normal;
font-weight: 400;
font-variant: normal;
font-size: 16px;
margin-left: 0;
padding-right: 0;
}
.mce-btn i.mce-i-wp_fullscreen,
.qt-fullscreen {
-ie7-icon: "\e023";
}
.mce-btn i.mce-i-wp_more,
.mce-btn i.mce-i-wp_page {
-ie7-icon: "\e027";
}
.mce-btn i.mce-i-wp_adv {
background-color: #a0a5aa;
}
.mce-btn i.mce-i-help,
.mce-btn i.mce-i-wp_help {
-ie7-icon: "\e016";
}
/* IE6 leftovers */
* html .row-actions {
visibility: visible;
}
* html div.widget-liquid-left,
* html div.widget-liquid-right {
display: block;
position: relative;
}
* html #editorcontainer {
padding: 0;
}
* html #poststuff h2 {
margin-left: 0;
}
* html .stuffbox,
* html .stuffbox input,
* html .stuffbox textarea {
border: 1px solid #ddd;
}
* html div.widget-liquid-left {
width: 99%;
}
* html .widgets-sortables {
height: 50px;
}
* html a#content_resize {
right: -2px;
}
* html .widget-title h4 {
width: 205px;
}
* html #removing-widget .in-widget-title {
display: none;
}
* html .media-item .pinkynail {
height: 32px;
width: 40px;
}
* html .describe .field input.text,
* html .describe .field textarea {
width: 440px;
}
* html input {
border: 1px solid #ddd;
}
* html .edit-box {
display: inline;
}
* html .postbox-container .meta-box-sortables {
height: 300px;
}
* html #wpbody-content #screen-options-link-wrap {
display: inline-block;
width: 150px;
text-align: center;
}
* html #wpbody-content #contextual-help-link-wrap {
display: inline-block;
width: 100px;
text-align: center;
}
* html #adminmenu {
margin-left: -80px;
}
* html .folded #adminmenu {
margin-left: -22px;
}
* html #wpcontent #adminmenu li.menu-top {
display: inline;
padding: 0;
margin: 0;
}
* html #wpfooter {
margin: 0;
}
* html #adminmenu div.wp-menu-image {
height: 29px;
}

View File

@ -30,10 +30,6 @@ a:focus {
0 0 2px 1px rgba(30, 140, 190, 0.8);
}
.ie8 a:focus {
outline: #5b9dd9 solid 1px;
}
h1, h2 {
border-bottom: 1px solid #ddd;
clear: both;

View File

@ -62,13 +62,6 @@
text-align: center;
}
.ie8 .column-response .comment-count-no-comments,
.ie8 .column-response .comment-count-approved,
.ie8 .column-comments .comment-count-no-comments,
.ie8 .column-comments .comment-count-approved {
min-width: 0;
}
.column-response .post-com-count-no-comments:after,
.column-response .post-com-count-approved:after,
.column-comments .post-com-count-no-comments:after,
@ -513,10 +506,6 @@ th.asc a:focus span.sorting-indicator:before {
0 0 2px 1px rgba(30, 140, 190, 0.8);
}
.ie8 .wp-list-table .toggle-row:focus:before {
outline: #5b9dd9 solid 1px;
}
.wp-list-table .toggle-row:active {
box-shadow: none;
}
@ -1080,11 +1069,6 @@ ul.cat-checklist {
max-width: 80%;
}
.ie8 .inline-edit-row #post_parent,
.ie8 .inline-edit-row select[name="page_template"] {
width: 250px;
}
.quick-edit-row-post fieldset label.inline-edit-status {
float: left;
}

View File

@ -79,7 +79,6 @@
top: 50%;
top: calc( 50% - 10px );
transition: opacity 0.5s;
filter: alpha(opacity=0); /* ie8 and earlier */
}
body.folded .revisions .loading-indicator {
@ -94,7 +93,6 @@ body.folded .revisions .loading-indicator {
.revisions.loading .loading-indicator {
opacity: 1;
filter: alpha(opacity=100); /* ie8 and earlier */
}
.revisions .diff {
@ -103,7 +101,6 @@ body.folded .revisions .loading-indicator {
.revisions.loading .diff {
opacity: 0.5;
filter: alpha(opacity=50); /* ie8 and earlier */
}
.revisions.diff-error .diff {
@ -385,16 +382,6 @@ table.diff .diff-addedline ins {
right: 20px;
}
.ie8 .revisions-tooltip-arrow > span {
left: 15px;
top: -25px;
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)";
}
.ie8 .revisions-tooltip.flipped .revisions-tooltip-arrow > span {
right: 25px;
}
.revisions-tooltip,
.revisions-tooltip-arrow > span {
border: 1px solid #ddd;

View File

@ -61,11 +61,6 @@ body.js .theme-browser.search-loading {
box-sizing: border-box;
}
.ie8 .theme-browser .theme {
width: 30%;
margin: 0 3% 4% 0;
}
.theme-browser .theme:nth-child(3n) {
margin-right: 0;
}
@ -504,10 +499,6 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
border-top: 1px solid #eee;
}
.ie8 .theme-overlay .theme-actions {
border: 1px solid #eee;
}
.theme-overlay .theme-actions a {
margin-right: 5px;
margin-bottom: 5px;

View File

@ -526,7 +526,6 @@ function wp_iframe( $content_func, ...$args ) {
) {
wp_enqueue_style( 'deprecated-media' );
}
wp_enqueue_style( 'ie' );
?>
<script type="text/javascript">

View File

@ -2442,21 +2442,6 @@ function _wp_admin_html_begin() {
?>
<!DOCTYPE html>
<!--[if IE 8]>
<html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>"
<?php
/**
* Fires inside the HTML tag in the admin header.
*
* @since 2.2.0
*/
do_action( 'admin_xml_ns' );
language_attributes();
?>
>
<![endif]-->
<!--[if !(IE 8) ]><!-->
<html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>"
<?php
/** This action is documented in wp-admin/includes/template.php */
@ -2464,8 +2449,7 @@ function _wp_admin_html_begin() {
language_attributes();
?>
>
<!--<![endif]-->
>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php echo get_option( 'blog_charset' ); ?>" />
<?php

View File

@ -792,6 +792,11 @@ $_old_files = array(
// 5.4
'wp-admin/js/wp-fullscreen-stub.js',
'wp-admin/js/wp-fullscreen-stub.min.js',
// 5.5
'wp-admin/css/ie.css',
'wp-admin/css/ie.min.css',
'wp-admin/css/ie-rtl.css',
'wp-admin/css/ie-rtl.min.css',
);
/**

View File

@ -62,10 +62,7 @@ header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option
<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php echo get_option( 'blog_charset' ); ?>" />
<meta name="robots" content="noindex,nofollow" />
<title><?php _e( 'WordPress &rsaquo; Update' ); ?></title>
<?php
wp_admin_css( 'install', true );
wp_admin_css( 'ie', true );
?>
<?php wp_admin_css( 'install', true ); ?>
</head>
<body class="wp-core-ui">
<p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>"><?php _e( 'WordPress' ); ?></a></p>

View File

@ -424,24 +424,13 @@ class WP_Admin_Bar {
}
/**
* @global bool $is_IE
* @param object $root
*/
final protected function _render( $root ) {
global $is_IE;
// Add browser classes.
// We have to do this here since admin bar shows on the front end.
$class = 'nojq nojs';
if ( $is_IE ) {
if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 7' ) ) {
$class .= ' ie7';
} elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 8' ) ) {
$class .= ' ie8';
} elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 9' ) ) {
$class .= ' ie9';
}
} elseif ( wp_is_mobile() ) {
if ( wp_is_mobile() ) {
$class .= ' mobile';
}

View File

@ -149,12 +149,6 @@ html:lang(he-il) .rtl #wpadminbar * {
float: none;
}
#wpadminbar.ie7 .menupop .ab-sub-wrapper,
#wpadminbar.ie7 .shortlink-input {
top: 32px;
left: 0;
}
#wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
min-width: 100%;
}
@ -422,10 +416,6 @@ html:lang(he-il) .rtl #wpadminbar * {
min-width: 270px;
}
#wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar .ab-item {
white-space: nowrap;
}
#wpadminbar #wp-admin-bar-user-actions > li {
margin-left: 16px;
margin-right: 16px;
@ -489,11 +479,6 @@ html:lang(he-il) .rtl #wpadminbar * {
display: inline;
}
#wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar > .ab-empty-item img,
#wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar > a img {
width: auto;
}
/**
* WP Logo
*/
@ -606,10 +591,7 @@ html:lang(he-il) .rtl #wpadminbar * {
/**
* Search
*/
#wpadminbar.ie8 #wp-admin-bar-search {
display: block;
min-width: 32px;
}
#wpadminbar #wp-admin-bar-search .ab-item {
padding: 0;
background: transparent;
@ -670,26 +652,6 @@ html:lang(he-il) .rtl #wpadminbar * {
border: 0;
}
#wpadminbar.ie7 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input {
margin-top: 3px;
width: 120px;
}
#wpadminbar.ie8 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input {
/* IE8 z-index bug with transparent / empty elements - fill in with an encoded transparent GIF */
background: transparent 0 0 repeat scroll url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
}
/* IE8 doesn't redraw the pseudo elements unless you make a change to the content */
#wpadminbar.ie8 #adminbarsearch.adminbar-focused:before {
content: "\f179 "; /* extra space */
}
#wpadminbar.ie8 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
background: #fff;
z-index: -1;
}
#wpadminbar #adminbarsearch .adminbar-button {
display: none;
}
@ -746,64 +708,6 @@ html:lang(he-il) .rtl #wpadminbar * {
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
}
/**
* IE 6-targeted rules
*/
* html #wpadminbar {
overflow: hidden;
position: absolute;
}
* html #wpadminbar .quicklinks ul li a {
float: left;
}
* html #wpadminbar .menupop a span {
background-image: none;
}
/* No @font-face support */
.no-font-face #wpadminbar ul.ab-top-menu > li > a.ab-item {
display: block;
width: 45px;
text-align: center;
overflow: hidden;
margin: 0 3px;
}
.no-font-face #wpadminbar #wp-admin-bar-my-sites > .ab-item,
.no-font-face #wpadminbar #wp-admin-bar-site-name > .ab-item,
.no-font-face #wpadminbar #wp-admin-bar-edit > .ab-item {
text-indent: 0;
}
.no-font-face #wpadminbar .ab-icon,
.no-font-face #wpadminbar .ab-icon:before,
.no-font-face #wpadminbar a.ab-item:before,
.no-font-face #wpadminbar #wp-admin-bar-wp-logo > .ab-item {
display: none !important;
}
.no-font-face #wpadminbar ul.ab-top-menu > li > a > span.ab-label {
display: inline;
}
.no-font-face #wpadminbar #wp-admin-bar-menu-toggle span.ab-icon {
display: inline !important;
}
.no-font-face #wpadminbar #wp-admin-bar-menu-toggle span.ab-icon:before {
content: "Menu";
font: 14px/45px sans-serif !important;
display: inline-block !important;
color: #fff;
}
.no-font-face #wpadminbar #wp-admin-bar-site-name a.ab-item {
color: #fff;
}
/* End no @font-face */
@media screen and (max-width: 782px) {
/* Toolbar Touchification*/
html #wpadminbar {

View File

@ -233,9 +233,6 @@ TABLE OF CONTENTS:
background: transparent !important;
}
.ie8 .wp-core-ui .button-link:focus {
outline: #5b9dd9 solid 1px;
}
/* ----------------------------------------------------------------------------
3.0 - Primary Button Style

View File

@ -152,15 +152,9 @@ function wp_underscore_video_template() {
* Prints the templates used in the media manager.
*
* @since 3.5.0
*
* @global bool $is_IE
*/
function wp_print_media_templates() {
global $is_IE;
$class = 'media-modal wp-core-ui';
if ( $is_IE && strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 7' ) !== false ) {
$class .= ' ie7';
}
$alt_text_description = sprintf(
/* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */

View File

@ -1691,13 +1691,10 @@ function wp_default_styles( $styles ) {
$styles->add( 'login', "/wp-admin/css/login$suffix.css", array( 'dashicons', 'buttons', 'forms', 'l10n' ) );
$styles->add( 'install', "/wp-admin/css/install$suffix.css", array( 'dashicons', 'buttons', 'forms', 'l10n' ) );
$styles->add( 'wp-color-picker', "/wp-admin/css/color-picker$suffix.css" );
$styles->add( 'customize-controls', "/wp-admin/css/customize-controls$suffix.css", array( 'wp-admin', 'colors', 'ie', 'imgareaselect' ) );
$styles->add( 'customize-controls', "/wp-admin/css/customize-controls$suffix.css", array( 'wp-admin', 'colors', 'imgareaselect' ) );
$styles->add( 'customize-widgets', "/wp-admin/css/customize-widgets$suffix.css", array( 'wp-admin', 'colors' ) );
$styles->add( 'customize-nav-menus', "/wp-admin/css/customize-nav-menus$suffix.css", array( 'wp-admin', 'colors' ) );
$styles->add( 'ie', "/wp-admin/css/ie$suffix.css" );
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );
// Common dependencies.
$styles->add( 'buttons', "/wp-includes/css/buttons$suffix.css" );
$styles->add( 'dashicons', "/wp-includes/css/dashicons$suffix.css" );
@ -1810,7 +1807,6 @@ function wp_default_styles( $styles ) {
'customize-widgets',
'customize-nav-menus',
'customize-preview',
'ie',
'login',
'site-health',
// Includes CSS.

View File

@ -3317,6 +3317,7 @@ function wp_customize_url( $stylesheet = '' ) {
*
* @since 3.4.0
* @since 4.7.0 Support for IE8 and below is explicitly removed via conditional comments.
* @since 5.5.0 IE8 and older are no longer supported.
*/
function wp_customize_support_script() {
$admin_origin = parse_url( admin_url() );
@ -3324,28 +3325,21 @@ function wp_customize_support_script() {
$cross_domain = ( strtolower( $admin_origin['host'] ) != strtolower( $home_origin['host'] ) );
$type_attr = current_theme_supports( 'html5', 'script' ) ? '' : ' type="text/javascript"';
?>
<!--[if lte IE 8]>
<script<?php echo $type_attr; ?>>
document.body.className = document.body.className.replace( /(^|\s)(no-)?customize-support(?=\s|$)/, '' ) + ' no-customize-support';
</script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script<?php echo $type_attr; ?>>
(function() {
var request, b = document.body, c = 'className', cs = 'customize-support', rcs = new RegExp('(^|\\s+)(no-)?'+cs+'(\\s+|$)');
<script<?php echo $type_attr; ?>>
(function() {
var request, b = document.body, c = 'className', cs = 'customize-support', rcs = new RegExp('(^|\\s+)(no-)?'+cs+'(\\s+|$)');
<?php if ( $cross_domain ) : ?>
request = (function(){ var xhr = new XMLHttpRequest(); return ('withCredentials' in xhr); })();
<?php else : ?>
request = true;
<?php endif; ?>
<?php if ( $cross_domain ) : ?>
request = (function(){ var xhr = new XMLHttpRequest(); return ('withCredentials' in xhr); })();
<?php else : ?>
request = true;
<?php endif; ?>
b[c] = b[c].replace( rcs, ' ' );
// The customizer requires postMessage and CORS (if the site is cross domain).
b[c] += ( window.postMessage && request ? ' ' : ' no-' ) + cs;
}());
</script>
<!--<![endif]-->
b[c] = b[c].replace( rcs, ' ' );
// The customizer requires postMessage and CORS (if the site is cross domain).
b[c] += ( window.postMessage && request ? ' ' : ' no-' ) + cs;
}());
</script>
<?php
}

View File

@ -86,12 +86,7 @@ function login_header( $title = 'Log In', $message = '', $wp_error = null ) {
$login_title = apply_filters( 'login_title', $login_title, $title );
?><!DOCTYPE html>
<!--[if IE 8]>
<html xmlns="http://www.w3.org/1999/xhtml" class="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 8) ]><!-->
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<!--<![endif]-->
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
<title><?php echo $login_title; ?></title>