Site Health info tab: Remove the "Directories and Sizes" section on Multisite installations. Most of the info shown there doesn't apply for multisite.

Props xkon, desrosj, azaozz.

git-svn-id: https://develop.svn.wordpress.org/trunk@45239 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2019-04-18 00:33:03 +00:00
parent 6621b2ec0e
commit 288116c9ff
3 changed files with 66 additions and 56 deletions
+7 -2
View File
@@ -15,6 +15,7 @@ jQuery( document ).ready( function( $ ) {
var data;
var clipboard = new ClipboardJS( '.site-health-copy-buttons .copy-button' );
var isDebugTab = $( '.health-check-body.health-check-debug-tab' ).length;
var pathsSizesSection = $( '#health-check-accordion-block-wp-paths-sizes' );
// Debug information copy section.
clipboard.on( 'success', function( e ) {
@@ -295,7 +296,7 @@ jQuery( document ).ready( function( $ ) {
copyButton.attr( 'data-clipboard-text', clipdoardText );
$( '#health-check-accordion-block-wp-paths-sizes' ).find( 'td[class]' ).each( function( i, element ) {
pathsSizesSection.find( 'td[class]' ).each( function( i, element ) {
var td = $( element );
var name = td.attr( 'class' );
@@ -306,6 +307,10 @@ jQuery( document ).ready( function( $ ) {
}
if ( isDebugTab ) {
getDirectorySizes();
if ( pathsSizesSection.length ) {
getDirectorySizes();
} else {
RecalculateProgression();
}
}
} );