diff --git a/wp-admin/site-health.php b/wp-admin/site-health.php index 590153a102..9facc1f936 100644 --- a/wp-admin/site-health.php +++ b/wp-admin/site-health.php @@ -36,10 +36,12 @@ $wrapper_classes = array( 'tab-count-' . count( $tabs ), ); +$current_tab = ( isset( $_GET['tab'] ) ? $_GET['tab'] : '' ); + $title = sprintf( // translators: %s: The currently displayed tab. - __( 'Site Health %s' ), - ( isset( $_GET['tab'] ) ? esc_html( $tabs[ $_GET['tab'] ] ) : esc_html( reset( $tabs ) ) ) + __( 'Site Health - %s' ), + ( isset( $tabs[ $current_tab ] ) ? esc_html( $tabs[ $current_tab ] ) : esc_html( reset( $tabs ) ) ) ); if ( ! current_user_can( 'view_site_health_checks' ) ) { @@ -133,7 +135,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php'; admin_url( 'site-health.php' ) ) ), - ( isset( $_GET['tab'] ) && $_GET['tab'] === $slug ? 'active' : '' ), + ( $current_tab === $slug ? 'active' : '' ), esc_html( $label ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 90c9a3769c..c662274e91 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-beta4-51251'; +$wp_version = '5.8-beta4-51252'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.