diff --git a/src/js/_enqueues/admin/site-health.js b/src/js/_enqueues/admin/site-health.js
|
a
|
b
|
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | $( '.issues', '#health-check-issues-' + issue.status ).append( template( issue ) ); |
| | 172 | |
| | 173 | if ( parseInt( SiteHealth.site_status.issues.critical, 0 ) > 0 ) { |
| | 174 | $( '#health-check-issues-critical' ).removeClass( 'hidden' ); |
| | 175 | } |
| | 176 | |
| | 177 | if ( parseInt( SiteHealth.site_status.issues.recommended, 0 ) > 0 ) { |
| | 178 | $( '#health-check-issues-recommended' ).removeClass( 'hidden' ); |
| | 179 | } |
| 172 | 180 | } |
| 173 | 181 | |
| 174 | 182 | /** |
| … |
… |
|
| 210 | 218 | |
| 211 | 219 | $circle.css( { strokeDashoffset: pct } ); |
| 212 | 220 | |
| 213 | | if ( 1 > parseInt( SiteHealth.site_status.issues.critical, 0 ) ) { |
| 214 | | $( '#health-check-issues-critical' ).addClass( 'hidden' ); |
| 215 | | } |
| 216 | | |
| 217 | | if ( 1 > parseInt( SiteHealth.site_status.issues.recommended, 0 ) ) { |
| 218 | | $( '#health-check-issues-recommended' ).addClass( 'hidden' ); |
| 219 | | } |
| 220 | | |
| 221 | 221 | if ( 80 <= val && 0 === parseInt( SiteHealth.site_status.issues.critical, 0 ) ) { |
| 222 | 222 | $wrapper.addClass( 'green' ).removeClass( 'orange' ); |
| 223 | 223 | |
diff --git a/src/wp-admin/site-health.php b/src/wp-admin/site-health.php
|
a
|
b
|
|
| 215 | 215 | <?php _e( 'Site Health Status' ); ?> |
| 216 | 216 | </h2> |
| 217 | 217 | |
| 218 | | <p><?php _e( 'The site health check shows critical information about your WordPress configuration and items that require your attention.' ); ?></p> |
| | 218 | <p><?php _e( 'The site health check shows information about your WordPress configuration and items that may need your attention.' ); ?></p> |
| 219 | 219 | |
| 220 | | <div class="site-health-issues-wrapper" id="health-check-issues-critical"> |
| | 220 | <div class="site-health-issues-wrapper hidden" id="health-check-issues-critical"> |
| 221 | 221 | <h3 class="site-health-issue-count-title"> |
| 222 | 222 | <?php |
| 223 | 223 | /* translators: %s: Number of critical issues found. */ |
| … |
… |
|
| 225 | 225 | ?> |
| 226 | 226 | </h3> |
| 227 | 227 | |
| | 228 | <p><?php _e( 'Critical issues are items that may have a high impact on your sites performance or security, and resolving these issues should be prioritized.' ); ?></p> |
| | 229 | |
| 228 | 230 | <div id="health-check-site-status-critical" class="health-check-accordion issues"></div> |
| 229 | 231 | </div> |
| 230 | 232 | |
| 231 | | <div class="site-health-issues-wrapper" id="health-check-issues-recommended"> |
| | 233 | <div class="site-health-issues-wrapper hidden" id="health-check-issues-recommended"> |
| 232 | 234 | <h3 class="site-health-issue-count-title"> |
| 233 | 235 | <?php |
| 234 | 236 | /* translators: %s: Number of recommended improvements. */ |
| … |
… |
|
| 236 | 238 | ?> |
| 237 | 239 | </h3> |
| 238 | 240 | |
| | 241 | <p><?php _e( 'Recommended items are considered beneficial to your site, and may improve your site in various ways, but are not necessarily a priority when looking to resolve issues.' ); ?></p> |
| | 242 | |
| 239 | 243 | <div id="health-check-site-status-recommended" class="health-check-accordion issues"></div> |
| 240 | 244 | </div> |
| 241 | 245 | </div> |