diff --git a/src/js/_enqueues/admin/site-health.js b/src/js/_enqueues/admin/site-health.js
|
a
|
b
|
|
| 12 | 12 | _n = wp.i18n._n, |
| 13 | 13 | sprintf = wp.i18n.sprintf, |
| 14 | 14 | clipboard = new ClipboardJS( '.site-health-copy-buttons .copy-button' ), |
| | 15 | isSiteHealthPage = $( '.health-check-body' ).length, |
| | 16 | isStatusTab = $( '.health-check-body.health-check-status-tab' ).length, |
| 15 | 17 | isDebugTab = $( '.health-check-body.health-check-debug-tab' ).length, |
| 16 | 18 | pathsSizesSection = $( '#health-check-accordion-block-wp-paths-sizes' ), |
| 17 | 19 | successTimeout; |
| … |
… |
|
| 229 | 231 | wp.a11y.speak( __( 'All site health tests have finished running. There are items that should be addressed, and the results are now available on the page.' ) ); |
| 230 | 232 | } |
| 231 | 233 | |
| 232 | | if ( ! isDebugTab ) { |
| | 234 | if ( isStatusTab ) { |
| 233 | 235 | $.post( |
| 234 | 236 | ajaxurl, |
| 235 | 237 | { |
| … |
… |
|
| 346 | 348 | appendIssue( wp.hooks.applyFilters( 'site_status_test_result', issue ) ); |
| 347 | 349 | } |
| 348 | 350 | |
| 349 | | if ( 'undefined' !== typeof SiteHealth && ! isDebugTab ) { |
| | 351 | if ( 'undefined' !== typeof SiteHealth ) { |
| 350 | 352 | if ( 0 === SiteHealth.site_status.direct.length && 0 === SiteHealth.site_status.async.length ) { |
| 351 | 353 | recalculateProgression(); |
| 352 | 354 | } else { |
diff --git a/src/wp-admin/site-health.php b/src/wp-admin/site-health.php
|
a
|
b
|
|
| 195 | 195 | <p><?php _e( 'The Site Health check requires JavaScript.' ); ?></p> |
| 196 | 196 | </div> |
| 197 | 197 | |
| 198 | | <div class="health-check-body hide-if-no-js"> |
| | 198 | <div class="health-check-body health-check-status-tab hide-if-no-js"> |
| 199 | 199 | <div class="site-status-all-clear hide"> |
| 200 | 200 | <p class="icon"> |
| 201 | 201 | <span class="dashicons dashicons-yes"></span> |