Make WordPress Core


Ignore:
Timestamp:
04/17/2021 11:27:35 AM (3 years ago)
Author:
Clorith
Message:

Site Health: Remove Ajax requests from dashboard widget.

The Site Health dashboard widget uses the same JavaScript file as the Site Health pages to generate its progress indicator.

This file was also set up to store the current Site Health check results if the current tab being shown isn't the debug information one, this had the side effect of the dashboard being seen as not the debug screen as well.

This now has a conditional making sure it's the status screen it self being displayed, before trying to do any Ajax requests.

Props arena.
Fixes #49814.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/site-health.php

    r50765 r50766  
    196196</div>
    197197
    198 <div class="health-check-body hide-if-no-js">
     198<div class="health-check-body health-check-status-tab hide-if-no-js">
    199199    <div class="site-status-all-clear hide">
    200200        <p class="icon">
Note: See TracChangeset for help on using the changeset viewer.