--- a/wp/wp-admin/site-health-info.php Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-admin/site-health-info.php Tue Dec 15 13:49:49 2020 +0100
@@ -7,7 +7,7 @@
*/
/** WordPress Administration Bootstrap */
-require_once( dirname( __FILE__ ) . '/admin.php' );
+require_once __DIR__ . '/admin.php';
$title = __( 'Site Health Info' );
@@ -19,43 +19,46 @@
wp_enqueue_script( 'site-health' );
if ( ! class_exists( 'WP_Debug_Data' ) ) {
- require_once( ABSPATH . 'wp-admin/includes/class-wp-debug-data.php' );
+ require_once ABSPATH . 'wp-admin/includes/class-wp-debug-data.php';
}
if ( ! class_exists( 'WP_Site_Health' ) ) {
- require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
+ require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
}
-$health_check_site_status = new WP_Site_Health();
+$health_check_site_status = WP_Site_Health::get_instance();
-require_once( ABSPATH . 'wp-admin/admin-header.php' );
+require_once ABSPATH . 'wp-admin/admin-header.php';
?>
<div class="health-check-header">
<div class="health-check-title-section">
<h1>
<?php _e( 'Site Health' ); ?>
</h1>
+ </div>
- <div class="site-health-progress hide-if-no-js loading">
+ <div class="health-check-title-section site-health-progress-wrapper loading hide-if-no-js">
+ <div class="site-health-progress">
<svg role="img" aria-hidden="true" focusable="false" width="100%" height="100%" viewBox="0 0 200 200" version="1.1" xmlns="http://www.w3.org/2000/svg">
<circle 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>
- <span class="screen-reader-text"><?php _e( 'Current health score:' ); ?></span>
- <span class="site-health-progress-count"></span>
+ </div>
+ <div class="site-health-progress-label">
+ <?php _e( 'Results are still loading…' ); ?>
</div>
</div>
<nav class="health-check-tabs-wrapper hide-if-no-js" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
<a href="<?php echo esc_url( admin_url( 'site-health.php' ) ); ?>" class="health-check-tab">
<?php
- /* translators: tab heading for Site Health Status page */
+ /* translators: Tab heading for Site Health Status page. */
_ex( 'Status', 'Site Health' );
?>
</a>
<a href="<?php echo esc_url( admin_url( 'site-health.php?tab=debug' ) ); ?>" class="health-check-tab active" aria-current="true">
<?php
- /* translators: tab heading for Site Health Info page */
+ /* translators: Tab heading for Site Health Info page. */
_ex( 'Info', 'Site Health' );
?>
</a>
@@ -82,10 +85,13 @@
</h2>
<p>
- <?php _e( 'This page can show you every detail about the configuration of your WordPress website. If we see anything here that could be improved, we will let you know on the Site Health Status page.' ); ?>
+ <?php
+ /* translators: %s: URL to Site Health Status page. */
+ printf( __( 'This page can show you every detail about the configuration of your WordPress website. For any improvements that could be made, see the <a href="%s">Site Health Status</a> page.' ), esc_url( admin_url( 'site-health.php' ) ) );
+ ?>
</p>
<p>
- <?php _e( 'If you want to export a handy list of all the information on this page, you can use the button below to copy it to the clipboard. You can then paste it in a text file and save it to your harddrive, or paste it in an email exchange with a support engineer or theme/plugin developer for example.' ); ?>
+ <?php _e( 'If you want to export a handy list of all the information on this page, you can use the button below to copy it to the clipboard. You can then paste it in a text file and save it to your device, or paste it in an email exchange with a support engineer or theme/plugin developer for example.' ); ?>
</p>
<div class="site-health-copy-buttons">
@@ -93,7 +99,7 @@
<button type="button" class="button copy-button" data-clipboard-text="<?php echo esc_attr( WP_Debug_Data::format( $info, 'debug' ) ); ?>">
<?php _e( 'Copy site info to clipboard' ); ?>
</button>
- <span class="success" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
+ <span class="success hidden" aria-hidden="true"><?php _e( 'Copied!' ); ?></span>
</div>
</div>
@@ -175,4 +181,4 @@
</div>
<?php
-include( ABSPATH . 'wp-admin/admin-footer.php' );
+require_once ABSPATH . 'wp-admin/admin-footer.php';