Coding Standards: Clean up the Site Health stylesheet.
- reduces selectors specificity to avoid over-qualified selectors - removes unused rulesets / properties - renames some CSS classes Fixes #46685. Built from https://develop.svn.wordpress.org/trunk@45071 git-svn-id: http://core.svn.wordpress.org/trunk@44880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d56f81fe45
commit
2a99454732
|
@ -1,44 +1,40 @@
|
||||||
body.site-health #wpcontent {
|
.site-health #wpcontent {
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .wrap {
|
/* Emulates .wrap h1 styling */
|
||||||
margin-left: 0;
|
.health-check-header h1 {
|
||||||
margin-right: 0;
|
display: inline-block;
|
||||||
}
|
|
||||||
|
|
||||||
body.site-health .wrap h2 {
|
|
||||||
padding: 1rem 0;
|
|
||||||
font-size: 1.3em;
|
|
||||||
line-height: 1.4;
|
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
margin: 1rem 0.8rem;
|
||||||
|
font-size: 23px;
|
||||||
|
padding: 9px 0 4px 0;
|
||||||
|
line-height: 29px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health ul li,
|
.health-check-body h2 {
|
||||||
body.site-health ol li {
|
padding: 1rem 0;
|
||||||
line-height: 1.5;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-header {
|
.health-check-body h3 {
|
||||||
|
padding: 0;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.health-check-header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 0;
|
margin: 0 0 1rem;
|
||||||
margin-bottom: 1rem;
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-bottom: 1px solid #e2e4e7;
|
border-bottom: 1px solid #e2e4e7;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-header .title-section {
|
.health-check-title-section {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-header .title-section h1 {
|
|
||||||
display: inline-block;
|
|
||||||
font-weight: 600;
|
|
||||||
margin: 1rem 0.8rem 1rem 0.8rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.site-health-progress {
|
.site-health-progress {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
@ -50,7 +46,7 @@ body.site-health .health-check-header .title-section h1 {
|
||||||
font-size: 0.4rem;
|
font-size: 0.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-health-progress .progress-count {
|
.site-health-progress-count {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: block;
|
display: block;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
|
@ -64,15 +60,11 @@ body.site-health .health-check-header .title-section h1 {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-health-progress .progress-count::after {
|
.site-health-progress-count::after {
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-health-progress.hidden {
|
.site-health-progress.loading .site-health-progress-count::after {
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.site-health-progress.loading .progress-count::after {
|
|
||||||
animation: loadingEllipsis 3s infinite ease-in-out;
|
animation: loadingEllipsis 3s infinite ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,12 +118,7 @@ body.site-health .health-check-header .title-section h1 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-header .tabs-wrapper {
|
.health-check-tab {
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.site-health .health-check-header .tabs-wrapper .tab {
|
|
||||||
float: none;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
@ -140,42 +127,41 @@ body.site-health .health-check-header .tabs-wrapper .tab {
|
||||||
transition: box-shadow 0.5s ease-in-out;
|
transition: box-shadow 0.5s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-header .tabs-wrapper .tab:focus {
|
.health-check-tab:focus {
|
||||||
color: #191e23;
|
color: #191e23;
|
||||||
outline: 1px solid #6c7781;
|
outline: 1px solid #6c7781;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-header .tabs-wrapper .tab.active {
|
.health-check-tab.active {
|
||||||
box-shadow: inset 0 -3px #007cba;
|
box-shadow: inset 0 -3px #007cba;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-body {
|
.health-check-body {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-table thead th:first-child,
|
.health-check-table td:first-child {
|
||||||
body.site-health .health-check-table thead td:first-child {
|
|
||||||
width: 30%;
|
width: 30%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-table tbody td {
|
.health-check-table td {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-table tbody td:first-child {
|
.health-check-table ul,
|
||||||
width: 30%;
|
.health-check-table ol {
|
||||||
}
|
|
||||||
|
|
||||||
body.site-health .health-check-table tbody td ul,
|
|
||||||
body.site-health .health-check-table tbody td ol {
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-health .pass::before,
|
.health-check-body li {
|
||||||
.site-health .good::before {
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.health-check-body .pass::before,
|
||||||
|
.health-check-body .good::before {
|
||||||
content: "\f147";
|
content: "\f147";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: #46b450;
|
color: #46b450;
|
||||||
|
@ -183,34 +169,29 @@ body.site-health .health-check-table tbody td ol {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-health .warning::before {
|
.health-check-body .warning::before {
|
||||||
content: "\f460";
|
content: "\f460";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: #ffb900;
|
color: #ffb900;
|
||||||
font-family: dashicons;
|
font-family: dashicons;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-health .info::before {
|
.health-check-body .info::before {
|
||||||
content: "\f348";
|
content: "\f348";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: #00a0d2;
|
color: #00a0d2;
|
||||||
font-family: dashicons;
|
font-family: dashicons;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-health .fail::before,
|
.health-check-body .fail::before,
|
||||||
.site-health .error::before {
|
.health-check-body .error::before {
|
||||||
content: "\f335";
|
content: "\f335";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: #dc3232;
|
color: #dc3232;
|
||||||
font-family: dashicons;
|
font-family: dashicons;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .spinner {
|
|
||||||
float: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.site-health-copy-buttons {
|
.site-health-copy-buttons {
|
||||||
display: block;
|
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -228,36 +209,27 @@ body.site-health .spinner {
|
||||||
.site-health-copy-buttons .success.visible {
|
.site-health-copy-buttons .success.visible {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .site-status-has-issues {
|
.site-status-has-issues.hide {
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.site-health .site-status-has-issues.hide {
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health h3 {
|
.site-health-view-more {
|
||||||
padding: 0;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.site-health .view-more {
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .issues-wrapper:first-of-type {
|
.site-health-issues-wrapper:first-of-type {
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .issues-wrapper {
|
.site-health-issues-wrapper {
|
||||||
margin-bottom: 3rem;
|
margin-bottom: 3rem;
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .site-status-all-clear {
|
.site-status-all-clear {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -269,45 +241,44 @@ body.site-health .site-status-all-clear {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (min-width: 784px) {
|
@media all and (min-width: 784px) {
|
||||||
body.site-health .site-status-all-clear {
|
.site-status-all-clear {
|
||||||
margin: 5rem 0;
|
margin: 5rem 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .site-status-all-clear.hide {
|
.site-status-all-clear.hide {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .site-status-all-clear .dashicons {
|
.site-status-all-clear .dashicons {
|
||||||
font-size: 150px;
|
font-size: 150px;
|
||||||
height: 130px;
|
height: 130px;
|
||||||
width: 150px;
|
width: 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .site-status-all-clear .encouragement {
|
.site-status-all-clear .encouragement {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .site-status-all-clear p {
|
.site-status-all-clear p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion {
|
.health-check-accordion {
|
||||||
border: 1px solid #e2e4e7;
|
border: 1px solid #e2e4e7;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion dt {
|
.health-check-accordion dt {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
border-top: 1px solid #e2e4e7;
|
border-top: 1px solid #e2e4e7;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion dt:first-child {
|
.health-check-accordion dt:first-child {
|
||||||
border-radius: 0.3em 0.3em 0 0;
|
|
||||||
border-top: none;
|
border-top: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger {
|
.health-check-accordion-trigger {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 0;
|
border: 0;
|
||||||
color: #212121;
|
color: #212121;
|
||||||
|
@ -321,12 +292,12 @@ body .health-check-accordion .health-check-accordion-trigger {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger:hover,
|
.health-check-accordion-trigger:hover,
|
||||||
body .health-check-accordion .health-check-accordion-trigger:active {
|
.health-check-accordion-trigger:active {
|
||||||
background: #f8f9f9;
|
background: #f8f9f9;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger:focus {
|
.health-check-accordion-trigger:focus {
|
||||||
color: #191e23;
|
color: #191e23;
|
||||||
border: none;
|
border: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
@ -334,13 +305,13 @@ body .health-check-accordion .health-check-accordion-trigger:focus {
|
||||||
outline: 1px dotted #555d66;
|
outline: 1px dotted #555d66;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .title {
|
.health-check-accordion-trigger .title {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .icon {
|
.health-check-accordion-trigger .icon {
|
||||||
border: solid #191e23;
|
border: solid #191e23;
|
||||||
border-width: 0 0 2px 2px;
|
border-width: 0 0 2px 2px;
|
||||||
height: 0.5rem;
|
height: 0.5rem;
|
||||||
|
@ -352,7 +323,7 @@ body .health-check-accordion .health-check-accordion-trigger .icon {
|
||||||
width: 0.5rem;
|
width: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge {
|
.health-check-accordion-trigger .badge {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0.1rem 0.5rem 0.15rem;
|
padding: 0.1rem 0.5rem 0.15rem;
|
||||||
background-color: #d7dade;
|
background-color: #d7dade;
|
||||||
|
@ -362,79 +333,71 @@ body .health-check-accordion .health-check-accordion-trigger .badge {
|
||||||
margin: 0 0.5rem;
|
margin: 0 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.blue {
|
.health-check-accordion-trigger .badge.blue {
|
||||||
background-color: #0073af;
|
background-color: #0073af;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.orange {
|
.health-check-accordion-trigger .badge.orange {
|
||||||
background-color: #ffb900;
|
background-color: #ffb900;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.red {
|
.health-check-accordion-trigger .badge.red {
|
||||||
background-color: #dc3232;
|
background-color: #dc3232;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.green {
|
.health-check-accordion-trigger .badge.green {
|
||||||
background-color: #40860a;
|
background-color: #40860a;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.pink {
|
.health-check-accordion-trigger .badge.pink {
|
||||||
background-color: #f4b0fc;
|
background-color: #f4b0fc;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.gray {
|
.health-check-accordion-trigger .badge.gray {
|
||||||
background-color: #ccc;
|
background-color: #ccc;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.light-blue {
|
.health-check-accordion-trigger .badge.light-blue {
|
||||||
background-color: #10e9fb;
|
background-color: #10e9fb;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.light-green {
|
.health-check-accordion-trigger .badge.light-green {
|
||||||
background-color: #60f999;
|
background-color: #60f999;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger[aria-expanded="true"] .icon {
|
.health-check-accordion-trigger[aria-expanded="true"] .icon {
|
||||||
transform: translateY(-30%) rotate(135deg)
|
transform: translateY(-30%) rotate(135deg)
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-panel {
|
.health-check-accordion-panel {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 1em 1.5em;
|
padding: 1em 1.5em;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-panel > div {
|
.health-check-accordion-panel[hidden] {
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-panel[hidden] {
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion dl dd {
|
|
||||||
margin: 0 2em 0.5em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 782px) {
|
@media screen and (max-width: 782px) {
|
||||||
body.site-health .health-check-body {
|
.health-check-body {
|
||||||
margin: 0 12px;
|
margin: 0 12px;
|
||||||
width: initial;
|
width: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The breakpoint is usually at 960px, the additional space is to allow for the margin. */
|
/* The breakpoint is usually at 960px, the additional space is to allow for the margin. */
|
||||||
@media only screen and (max-width: 1004px) {
|
@media only screen and (max-width: 1004px) {
|
||||||
body.site-health .health-check-body {
|
.health-check-body {
|
||||||
margin: 0 22px;
|
margin: 0 22px;
|
||||||
width: initial;
|
width: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,44 +1,40 @@
|
||||||
body.site-health #wpcontent {
|
.site-health #wpcontent {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .wrap {
|
/* Emulates .wrap h1 styling */
|
||||||
margin-right: 0;
|
.health-check-header h1 {
|
||||||
margin-left: 0;
|
display: inline-block;
|
||||||
}
|
|
||||||
|
|
||||||
body.site-health .wrap h2 {
|
|
||||||
padding: 1rem 0;
|
|
||||||
font-size: 1.3em;
|
|
||||||
line-height: 1.4;
|
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
margin: 1rem 0.8rem;
|
||||||
|
font-size: 23px;
|
||||||
|
padding: 9px 0 4px 0;
|
||||||
|
line-height: 29px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health ul li,
|
.health-check-body h2 {
|
||||||
body.site-health ol li {
|
padding: 1rem 0;
|
||||||
line-height: 1.5;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-header {
|
.health-check-body h3 {
|
||||||
|
padding: 0;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.health-check-header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 0;
|
margin: 0 0 1rem;
|
||||||
margin-bottom: 1rem;
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-bottom: 1px solid #e2e4e7;
|
border-bottom: 1px solid #e2e4e7;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-header .title-section {
|
.health-check-title-section {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-header .title-section h1 {
|
|
||||||
display: inline-block;
|
|
||||||
font-weight: 600;
|
|
||||||
margin: 1rem 0.8rem 1rem 0.8rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.site-health-progress {
|
.site-health-progress {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
@ -50,7 +46,7 @@ body.site-health .health-check-header .title-section h1 {
|
||||||
font-size: 0.4rem;
|
font-size: 0.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-health-progress .progress-count {
|
.site-health-progress-count {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: block;
|
display: block;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
|
@ -64,15 +60,11 @@ body.site-health .health-check-header .title-section h1 {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-health-progress .progress-count::after {
|
.site-health-progress-count::after {
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-health-progress.hidden {
|
.site-health-progress.loading .site-health-progress-count::after {
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.site-health-progress.loading .progress-count::after {
|
|
||||||
animation: loadingEllipsis 3s infinite ease-in-out;
|
animation: loadingEllipsis 3s infinite ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,12 +118,7 @@ body.site-health .health-check-header .title-section h1 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-header .tabs-wrapper {
|
.health-check-tab {
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.site-health .health-check-header .tabs-wrapper .tab {
|
|
||||||
float: none;
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
@ -140,42 +127,41 @@ body.site-health .health-check-header .tabs-wrapper .tab {
|
||||||
transition: box-shadow 0.5s ease-in-out;
|
transition: box-shadow 0.5s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-header .tabs-wrapper .tab:focus {
|
.health-check-tab:focus {
|
||||||
color: #191e23;
|
color: #191e23;
|
||||||
outline: 1px solid #6c7781;
|
outline: 1px solid #6c7781;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-header .tabs-wrapper .tab.active {
|
.health-check-tab.active {
|
||||||
box-shadow: inset 0 -3px #007cba;
|
box-shadow: inset 0 -3px #007cba;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-body {
|
.health-check-body {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-table thead th:first-child,
|
.health-check-table td:first-child {
|
||||||
body.site-health .health-check-table thead td:first-child {
|
|
||||||
width: 30%;
|
width: 30%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-table tbody td {
|
.health-check-table td {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .health-check-table tbody td:first-child {
|
.health-check-table ul,
|
||||||
width: 30%;
|
.health-check-table ol {
|
||||||
}
|
|
||||||
|
|
||||||
body.site-health .health-check-table tbody td ul,
|
|
||||||
body.site-health .health-check-table tbody td ol {
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-health .pass::before,
|
.health-check-body li {
|
||||||
.site-health .good::before {
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.health-check-body .pass::before,
|
||||||
|
.health-check-body .good::before {
|
||||||
content: "\f147";
|
content: "\f147";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: #46b450;
|
color: #46b450;
|
||||||
|
@ -183,34 +169,29 @@ body.site-health .health-check-table tbody td ol {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-health .warning::before {
|
.health-check-body .warning::before {
|
||||||
content: "\f460";
|
content: "\f460";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: #ffb900;
|
color: #ffb900;
|
||||||
font-family: dashicons;
|
font-family: dashicons;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-health .info::before {
|
.health-check-body .info::before {
|
||||||
content: "\f348";
|
content: "\f348";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: #00a0d2;
|
color: #00a0d2;
|
||||||
font-family: dashicons;
|
font-family: dashicons;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-health .fail::before,
|
.health-check-body .fail::before,
|
||||||
.site-health .error::before {
|
.health-check-body .error::before {
|
||||||
content: "\f335";
|
content: "\f335";
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: #dc3232;
|
color: #dc3232;
|
||||||
font-family: dashicons;
|
font-family: dashicons;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .spinner {
|
|
||||||
float: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.site-health-copy-buttons {
|
.site-health-copy-buttons {
|
||||||
display: block;
|
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -228,36 +209,27 @@ body.site-health .spinner {
|
||||||
.site-health-copy-buttons .success.visible {
|
.site-health-copy-buttons .success.visible {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .site-status-has-issues {
|
.site-status-has-issues.hide {
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.site-health .site-status-has-issues.hide {
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health h3 {
|
.site-health-view-more {
|
||||||
padding: 0;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
|
|
||||||
body.site-health .view-more {
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .issues-wrapper:first-of-type {
|
.site-health-issues-wrapper:first-of-type {
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .issues-wrapper {
|
.site-health-issues-wrapper {
|
||||||
margin-bottom: 3rem;
|
margin-bottom: 3rem;
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .site-status-all-clear {
|
.site-status-all-clear {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -269,45 +241,44 @@ body.site-health .site-status-all-clear {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (min-width: 784px) {
|
@media all and (min-width: 784px) {
|
||||||
body.site-health .site-status-all-clear {
|
.site-status-all-clear {
|
||||||
margin: 5rem 0;
|
margin: 5rem 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .site-status-all-clear.hide {
|
.site-status-all-clear.hide {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .site-status-all-clear .dashicons {
|
.site-status-all-clear .dashicons {
|
||||||
font-size: 150px;
|
font-size: 150px;
|
||||||
height: 130px;
|
height: 130px;
|
||||||
width: 150px;
|
width: 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .site-status-all-clear .encouragement {
|
.site-status-all-clear .encouragement {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.site-health .site-status-all-clear p {
|
.site-status-all-clear p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion {
|
.health-check-accordion {
|
||||||
border: 1px solid #e2e4e7;
|
border: 1px solid #e2e4e7;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion dt {
|
.health-check-accordion dt {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
border-top: 1px solid #e2e4e7;
|
border-top: 1px solid #e2e4e7;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion dt:first-child {
|
.health-check-accordion dt:first-child {
|
||||||
border-radius: 0.3em 0.3em 0 0;
|
|
||||||
border-top: none;
|
border-top: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger {
|
.health-check-accordion-trigger {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 0;
|
border: 0;
|
||||||
color: #212121;
|
color: #212121;
|
||||||
|
@ -321,12 +292,12 @@ body .health-check-accordion .health-check-accordion-trigger {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger:hover,
|
.health-check-accordion-trigger:hover,
|
||||||
body .health-check-accordion .health-check-accordion-trigger:active {
|
.health-check-accordion-trigger:active {
|
||||||
background: #f8f9f9;
|
background: #f8f9f9;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger:focus {
|
.health-check-accordion-trigger:focus {
|
||||||
color: #191e23;
|
color: #191e23;
|
||||||
border: none;
|
border: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
@ -334,13 +305,13 @@ body .health-check-accordion .health-check-accordion-trigger:focus {
|
||||||
outline: 1px dotted #555d66;
|
outline: 1px dotted #555d66;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .title {
|
.health-check-accordion-trigger .title {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .icon {
|
.health-check-accordion-trigger .icon {
|
||||||
border: solid #191e23;
|
border: solid #191e23;
|
||||||
border-width: 0 2px 2px 0;
|
border-width: 0 2px 2px 0;
|
||||||
height: 0.5rem;
|
height: 0.5rem;
|
||||||
|
@ -352,7 +323,7 @@ body .health-check-accordion .health-check-accordion-trigger .icon {
|
||||||
width: 0.5rem;
|
width: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge {
|
.health-check-accordion-trigger .badge {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0.1rem 0.5rem 0.15rem;
|
padding: 0.1rem 0.5rem 0.15rem;
|
||||||
background-color: #d7dade;
|
background-color: #d7dade;
|
||||||
|
@ -362,79 +333,71 @@ body .health-check-accordion .health-check-accordion-trigger .badge {
|
||||||
margin: 0 0.5rem;
|
margin: 0 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.blue {
|
.health-check-accordion-trigger .badge.blue {
|
||||||
background-color: #0073af;
|
background-color: #0073af;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.orange {
|
.health-check-accordion-trigger .badge.orange {
|
||||||
background-color: #ffb900;
|
background-color: #ffb900;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.red {
|
.health-check-accordion-trigger .badge.red {
|
||||||
background-color: #dc3232;
|
background-color: #dc3232;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.green {
|
.health-check-accordion-trigger .badge.green {
|
||||||
background-color: #40860a;
|
background-color: #40860a;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.pink {
|
.health-check-accordion-trigger .badge.pink {
|
||||||
background-color: #f4b0fc;
|
background-color: #f4b0fc;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.gray {
|
.health-check-accordion-trigger .badge.gray {
|
||||||
background-color: #ccc;
|
background-color: #ccc;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.light-blue {
|
.health-check-accordion-trigger .badge.light-blue {
|
||||||
background-color: #10e9fb;
|
background-color: #10e9fb;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger .badge.light-green {
|
.health-check-accordion-trigger .badge.light-green {
|
||||||
background-color: #60f999;
|
background-color: #60f999;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-trigger[aria-expanded="true"] .icon {
|
.health-check-accordion-trigger[aria-expanded="true"] .icon {
|
||||||
transform: translateY(-30%) rotate(-135deg)
|
transform: translateY(-30%) rotate(-135deg)
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-panel {
|
.health-check-accordion-panel {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 1em 1.5em;
|
padding: 1em 1.5em;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-panel > div {
|
.health-check-accordion-panel[hidden] {
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
body .health-check-accordion .health-check-accordion-panel[hidden] {
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body .health-check-accordion dl dd {
|
|
||||||
margin: 0 0 0.5em 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 782px) {
|
@media screen and (max-width: 782px) {
|
||||||
body.site-health .health-check-body {
|
.health-check-body {
|
||||||
margin: 0 12px;
|
margin: 0 12px;
|
||||||
width: initial;
|
width: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The breakpoint is usually at 960px, the additional space is to allow for the margin. */
|
/* The breakpoint is usually at 960px, the additional space is to allow for the margin. */
|
||||||
@media only screen and (max-width: 1004px) {
|
@media only screen and (max-width: 1004px) {
|
||||||
body.site-health .health-check-body {
|
.health-check-body {
|
||||||
margin: 0 22px;
|
margin: 0 22px;
|
||||||
width: initial;
|
width: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -68,7 +68,7 @@ jQuery( document ).ready( function( $ ) {
|
||||||
function RecalculateProgression() {
|
function RecalculateProgression() {
|
||||||
var r, c, pct;
|
var r, c, pct;
|
||||||
var $progress = $( '.site-health-progress' );
|
var $progress = $( '.site-health-progress' );
|
||||||
var $progressCount = $progress.find( '.progress-count' );
|
var $progressCount = $progress.find( '.site-health-progress-count' );
|
||||||
var $circle = $( '.site-health-progress svg #bar' );
|
var $circle = $( '.site-health-progress svg #bar' );
|
||||||
var totalTests = parseInt( SiteHealth.site_status.issues.good, 0 ) + parseInt( SiteHealth.site_status.issues.recommended, 0 ) + ( parseInt( SiteHealth.site_status.issues.critical, 0 ) * 1.5 );
|
var totalTests = parseInt( SiteHealth.site_status.issues.good, 0 ) + parseInt( SiteHealth.site_status.issues.recommended, 0 ) + ( parseInt( SiteHealth.site_status.issues.critical, 0 ) * 1.5 );
|
||||||
var failedTests = parseInt( SiteHealth.site_status.issues.recommended, 0 ) + ( parseInt( SiteHealth.site_status.issues.critical, 0 ) * 1.5 );
|
var failedTests = parseInt( SiteHealth.site_status.issues.recommended, 0 ) + ( parseInt( SiteHealth.site_status.issues.critical, 0 ) * 1.5 );
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
jQuery(document).ready(function(a){function b(b){var c=wp.template("health-check-issue"),d=a("#health-check-issues-"+b.status),e=a(".issue-count",d);SiteHealth.site_status.issues[b.status]++,e.text(SiteHealth.site_status.issues[b.status]),a(".issues","#health-check-issues-"+b.status).append(c(b))}function c(){var b,c,d,e=a(".site-health-progress"),f=e.find(".progress-count"),g=a(".site-health-progress svg #bar"),h=parseInt(SiteHealth.site_status.issues.good,0)+parseInt(SiteHealth.site_status.issues.recommended,0)+1.5*parseInt(SiteHealth.site_status.issues.critical,0),i=parseInt(SiteHealth.site_status.issues.recommended,0)+1.5*parseInt(SiteHealth.site_status.issues.critical,0),j=100-Math.ceil(i/h*100);return 0===h?void e.addClass("hidden"):(e.removeClass("loading"),b=g.attr("r"),c=Math.PI*(2*b),0>j&&(j=0),100<j&&(j=100),d=(100-j)/100*c,g.css({strokeDashoffset:d}),1>parseInt(SiteHealth.site_status.issues.critical,0)&&a("#health-check-issues-critical").addClass("hidden"),1>parseInt(SiteHealth.site_status.issues.recommended,0)&&a("#health-check-issues-recommended").addClass("hidden"),50<=j&&g.addClass("orange").removeClass("red"),90<=j&&g.addClass("green").removeClass("orange"),100===j&&(a(".site-status-all-clear").removeClass("hide"),a(".site-status-has-issues").addClass("hide")),f.text(j+"%"),a.post(ajaxurl,{action:"health-check-site-status-result",_wpnonce:SiteHealth.nonce.site_status_result,counts:SiteHealth.site_status.issues}),void wp.a11y.speak(SiteHealth.string.site_health_complete_screen_reader.replace("%s",j+"%")))}function d(){var e=!0;1<=SiteHealth.site_status.async.length&&a.each(SiteHealth.site_status.async,function(){var c={action:"health-check-"+this.test.replace("_","-"),_wpnonce:SiteHealth.nonce.site_status};return!!this.completed||(e=!1,this.completed=!0,a.post(ajaxurl,c,function(a){b(a.data),d()}),!1)}),e&&c()}var e,f=new ClipboardJS(".site-health-copy-buttons .copy-button");f.on("success",function(b){var c=a(b.trigger).closest("div");a(".success",c).addClass("visible"),wp.a11y.speak(SiteHealth.string.site_info_copied)}),a(".health-check-accordion").on("click",".health-check-accordion-trigger",function(){var b="true"===a(this).attr("aria-expanded");b?(a(this).attr("aria-expanded","false"),a("#"+a(this).attr("aria-controls")).attr("hidden",!0)):(a(this).attr("aria-expanded","true"),a("#"+a(this).attr("aria-controls")).attr("hidden",!1))}),a(".site-health-view-passed").on("click",function(){var b=a("#health-check-issues-good");b.toggleClass("hidden"),a(this).attr("aria-expanded",!b.hasClass("hidden"))}),"undefined"!=typeof SiteHealth&&(0===SiteHealth.site_status.direct.length&&0===SiteHealth.site_status.async.length?c():SiteHealth.site_status.issues={good:0,recommended:0,critical:0},0<SiteHealth.site_status.direct.length&&a.each(SiteHealth.site_status.direct,function(){b(this)}),0<SiteHealth.site_status.async.length?(e={action:"health-check-"+SiteHealth.site_status.async[0].test.replace("_","-"),_wpnonce:SiteHealth.nonce.site_status},SiteHealth.site_status.async[0].completed=!0,a.post(ajaxurl,e,function(a){b(a.data),d()})):c())});
|
jQuery(document).ready(function(a){function b(b){var c=wp.template("health-check-issue"),d=a("#health-check-issues-"+b.status),e=a(".issue-count",d);SiteHealth.site_status.issues[b.status]++,e.text(SiteHealth.site_status.issues[b.status]),a(".issues","#health-check-issues-"+b.status).append(c(b))}function c(){var b,c,d,e=a(".site-health-progress"),f=e.find(".site-health-progress-count"),g=a(".site-health-progress svg #bar"),h=parseInt(SiteHealth.site_status.issues.good,0)+parseInt(SiteHealth.site_status.issues.recommended,0)+1.5*parseInt(SiteHealth.site_status.issues.critical,0),i=parseInt(SiteHealth.site_status.issues.recommended,0)+1.5*parseInt(SiteHealth.site_status.issues.critical,0),j=100-Math.ceil(i/h*100);return 0===h?void e.addClass("hidden"):(e.removeClass("loading"),b=g.attr("r"),c=Math.PI*(2*b),0>j&&(j=0),100<j&&(j=100),d=(100-j)/100*c,g.css({strokeDashoffset:d}),1>parseInt(SiteHealth.site_status.issues.critical,0)&&a("#health-check-issues-critical").addClass("hidden"),1>parseInt(SiteHealth.site_status.issues.recommended,0)&&a("#health-check-issues-recommended").addClass("hidden"),50<=j&&g.addClass("orange").removeClass("red"),90<=j&&g.addClass("green").removeClass("orange"),100===j&&(a(".site-status-all-clear").removeClass("hide"),a(".site-status-has-issues").addClass("hide")),f.text(j+"%"),a.post(ajaxurl,{action:"health-check-site-status-result",_wpnonce:SiteHealth.nonce.site_status_result,counts:SiteHealth.site_status.issues}),void wp.a11y.speak(SiteHealth.string.site_health_complete_screen_reader.replace("%s",j+"%")))}function d(){var e=!0;1<=SiteHealth.site_status.async.length&&a.each(SiteHealth.site_status.async,function(){var c={action:"health-check-"+this.test.replace("_","-"),_wpnonce:SiteHealth.nonce.site_status};return!!this.completed||(e=!1,this.completed=!0,a.post(ajaxurl,c,function(a){b(a.data),d()}),!1)}),e&&c()}var e,f=new ClipboardJS(".site-health-copy-buttons .copy-button");f.on("success",function(b){var c=a(b.trigger).closest("div");a(".success",c).addClass("visible"),wp.a11y.speak(SiteHealth.string.site_info_copied)}),a(".health-check-accordion").on("click",".health-check-accordion-trigger",function(){var b="true"===a(this).attr("aria-expanded");b?(a(this).attr("aria-expanded","false"),a("#"+a(this).attr("aria-controls")).attr("hidden",!0)):(a(this).attr("aria-expanded","true"),a("#"+a(this).attr("aria-controls")).attr("hidden",!1))}),a(".site-health-view-passed").on("click",function(){var b=a("#health-check-issues-good");b.toggleClass("hidden"),a(this).attr("aria-expanded",!b.hasClass("hidden"))}),"undefined"!=typeof SiteHealth&&(0===SiteHealth.site_status.direct.length&&0===SiteHealth.site_status.async.length?c():SiteHealth.site_status.issues={good:0,recommended:0,critical:0},0<SiteHealth.site_status.direct.length&&a.each(SiteHealth.site_status.direct,function(){b(this)}),0<SiteHealth.site_status.async.length?(e={action:"health-check-"+SiteHealth.site_status.async[0].test.replace("_","-"),_wpnonce:SiteHealth.nonce.site_status},SiteHealth.site_status.async[0].completed=!0,a.post(ajaxurl,e,function(a){b(a.data),d()})):c())});
|
|
@ -30,8 +30,8 @@ $health_check_site_status = new WP_Site_Health();
|
||||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap health-check-header">
|
<div class="health-check-header">
|
||||||
<div class="title-section">
|
<div class="health-check-title-section">
|
||||||
<h1>
|
<h1>
|
||||||
<?php _ex( 'Site Health', 'Menu, Section and Page Title' ); ?>
|
<?php _ex( 'Site Health', 'Menu, Section and Page Title' ); ?>
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -42,16 +42,16 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
<circle id="bar" r="90" cx="100" cy="100" fill="transparent" stroke-dasharray="565.48" stroke-dashoffset="0"></circle>
|
<circle id="bar" r="90" cx="100" cy="100" fill="transparent" stroke-dasharray="565.48" stroke-dashoffset="0"></circle>
|
||||||
</svg>
|
</svg>
|
||||||
<span class="screen-reader-text"><?php _e( 'Current health score:' ); ?></span>
|
<span class="screen-reader-text"><?php _e( 'Current health score:' ); ?></span>
|
||||||
<span class="progress-count"></span>
|
<span class="site-health-progress-count"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav class="tabs-wrapper" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
|
<nav class="health-check-tabs-wrapper" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
|
||||||
<a href="<?php echo esc_url( admin_url( 'site-health.php' ) ); ?>" class="tab">
|
<a href="<?php echo esc_url( admin_url( 'site-health.php' ) ); ?>" class="health-check-tab">
|
||||||
<?php _e( 'Status' ); ?>
|
<?php _e( 'Status' ); ?>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="<?php echo esc_url( admin_url( 'site-health.php?tab=debug' ) ); ?>" class="tab active" aria-current="true">
|
<a href="<?php echo esc_url( admin_url( 'site-health.php?tab=debug' ) ); ?>" class="health-check-tab active" aria-current="true">
|
||||||
<?php _e( 'Info' ); ?>
|
<?php _e( 'Info' ); ?>
|
||||||
</a>
|
</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -59,7 +59,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
<div class="wp-clearfix"></div>
|
<div class="wp-clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="wrap health-check-body">
|
<div class="health-check-body">
|
||||||
<?php
|
<?php
|
||||||
WP_Debug_Data::check_for_updates();
|
WP_Debug_Data::check_for_updates();
|
||||||
|
|
||||||
|
|
|
@ -35,8 +35,8 @@ $health_check_site_status->check_wp_version_check_exists();
|
||||||
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="wrap health-check-header">
|
<div class="health-check-header">
|
||||||
<div class="title-section">
|
<div class="health-check-title-section">
|
||||||
<h1>
|
<h1>
|
||||||
<?php _ex( 'Site Health', 'Menu, Section and Page Title' ); ?>
|
<?php _ex( 'Site Health', 'Menu, Section and Page Title' ); ?>
|
||||||
</h1>
|
</h1>
|
||||||
|
@ -47,16 +47,16 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
<circle id="bar" r="90" cx="100" cy="100" fill="transparent" stroke-dasharray="565.48" stroke-dashoffset="0"></circle>
|
<circle id="bar" r="90" cx="100" cy="100" fill="transparent" stroke-dasharray="565.48" stroke-dashoffset="0"></circle>
|
||||||
</svg>
|
</svg>
|
||||||
<span class="screen-reader-text"><?php _e( 'Current health score:' ); ?></span>
|
<span class="screen-reader-text"><?php _e( 'Current health score:' ); ?></span>
|
||||||
<span class="progress-count"></span>
|
<span class="site-health-progress-count"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav class="tabs-wrapper" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
|
<nav class="health-check-tabs-wrapper" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
|
||||||
<a href="<?php echo esc_url( admin_url( 'site-health.php' ) ); ?>" class="tab active" aria-current="true">
|
<a href="<?php echo esc_url( admin_url( 'site-health.php' ) ); ?>" class="health-check-tab active" aria-current="true">
|
||||||
<?php _e( 'Status' ); ?>
|
<?php _e( 'Status' ); ?>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="<?php echo esc_url( admin_url( 'site-health.php?tab=debug' ) ); ?>" class="tab">
|
<a href="<?php echo esc_url( admin_url( 'site-health.php?tab=debug' ) ); ?>" class="health-check-tab">
|
||||||
<?php _e( 'Info' ); ?>
|
<?php _e( 'Info' ); ?>
|
||||||
</a>
|
</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -64,7 +64,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
<div class="wp-clearfix"></div>
|
<div class="wp-clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="wrap health-check-body">
|
<div class="health-check-body">
|
||||||
<div class="site-status-all-clear hide">
|
<div class="site-status-all-clear hide">
|
||||||
<p class="icon">
|
<p class="icon">
|
||||||
<span class="dashicons dashicons-yes"></span>
|
<span class="dashicons dashicons-yes"></span>
|
||||||
|
@ -86,7 +86,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
|
|
||||||
<p><?php _e( 'The site health check shows critical information about your WordPress configuration and items that require your attention.' ); ?></p>
|
<p><?php _e( 'The site health check shows critical information about your WordPress configuration and items that require your attention.' ); ?></p>
|
||||||
|
|
||||||
<div class="issues-wrapper" id="health-check-issues-critical">
|
<div class="site-health-issues-wrapper" id="health-check-issues-critical">
|
||||||
<h3>
|
<h3>
|
||||||
<span class="issue-count">0</span> <?php _e( 'Critical issues' ); ?>
|
<span class="issue-count">0</span> <?php _e( 'Critical issues' ); ?>
|
||||||
</h3>
|
</h3>
|
||||||
|
@ -94,7 +94,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
<dl id="health-check-site-status-critical" role="presentation" class="health-check-accordion issues"></dl>
|
<dl id="health-check-site-status-critical" role="presentation" class="health-check-accordion issues"></dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="issues-wrapper" id="health-check-issues-recommended">
|
<div class="site-health-issues-wrapper" id="health-check-issues-recommended">
|
||||||
<h3>
|
<h3>
|
||||||
<span class="issue-count">0</span> <?php _e( 'Recommended improvements' ); ?>
|
<span class="issue-count">0</span> <?php _e( 'Recommended improvements' ); ?>
|
||||||
</h3>
|
</h3>
|
||||||
|
@ -103,13 +103,13 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="view-more">
|
<div class="site-health-view-more">
|
||||||
<button type="button" class="button site-health-view-passed" aria-expanded="false" aria-controls="health-check-issues-good">
|
<button type="button" class="button site-health-view-passed" aria-expanded="false" aria-controls="health-check-issues-good">
|
||||||
<?php _e( 'Passed tests' ); ?>
|
<?php _e( 'Passed tests' ); ?>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="issues-wrapper hidden" id="health-check-issues-good">
|
<div class="site-health-issues-wrapper hidden" id="health-check-issues-good">
|
||||||
<h3>
|
<h3>
|
||||||
<span class="issue-count">0</span> <?php _e( 'Items with no issues detected' ); ?>
|
<span class="issue-count">0</span> <?php _e( 'Items with no issues detected' ); ?>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.2-beta1-45070';
|
$wp_version = '5.2-beta1-45071';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue