diff --git a/src/wp-admin/includes/class-wp-site-health.php b/src/wp-admin/includes/class-wp-site-health.php index fb8138f776..a2c8688ac7 100644 --- a/src/wp-admin/includes/class-wp-site-health.php +++ b/src/wp-admin/includes/class-wp-site-health.php @@ -428,7 +428,7 @@ class WP_Site_Health { '
%s
', __( 'Your site has 1 active plugin, and it is up to date.' ) ); - } else { + } elseif ( $plugins_active > 0 ) { $result['description'] .= sprintf( '%s
', sprintf( @@ -441,6 +441,11 @@ class WP_Site_Health { $plugins_active ) ); + } else { + $result['description'] .= sprintf( + '%s
', + __( 'Your site does not have any active plugins.' ) + ); } } @@ -591,7 +596,7 @@ class WP_Site_Health { '%s
', __( 'Your site has 1 installed theme, and it is up to date.' ) ); - } else { + } elseif ( $themes_total > 0 ) { $result['description'] .= sprintf( '%s
', sprintf( @@ -604,6 +609,11 @@ class WP_Site_Health { $themes_total ) ); + } else { + $result['description'] .= sprintf( + '%s
', + __( 'Your site does not have any installed themes.' ) + ); } }