Changeset 56549 for trunk/src/wp-admin/includes/class-wp-site-health.php
- Timestamp:
- 09/09/2023 09:26:01 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health.php
r56547 r56549 382 382 // Loop over the available plugins and check their versions and active state. 383 383 foreach ( $plugins as $plugin_path => $plugin ) { 384 $plugins_total++;384 ++$plugins_total; 385 385 386 386 if ( is_plugin_active( $plugin_path ) ) { 387 $plugins_active++;387 ++$plugins_active; 388 388 } 389 389 390 390 if ( array_key_exists( $plugin_path, $plugin_updates ) ) { 391 $plugins_need_update++;391 ++$plugins_need_update; 392 392 } 393 393 } … … 544 544 545 545 foreach ( $all_themes as $theme_slug => $theme ) { 546 $themes_total++;546 ++$themes_total; 547 547 548 548 if ( array_key_exists( $theme_slug, $theme_updates ) ) { 549 $themes_need_updates++;549 ++$themes_need_updates; 550 550 } 551 551 } … … 553 553 // If this is a child theme, increase the allowed theme count by one, to account for the parent. 554 554 if ( is_child_theme() ) { 555 $allowed_theme_count++;555 ++$allowed_theme_count; 556 556 } 557 557 558 558 // If there's a default theme installed and not in use, we count that as allowed as well. 559 559 if ( $has_default_theme && ! $using_default_theme ) { 560 $allowed_theme_count++;560 ++$allowed_theme_count; 561 561 } 562 562 … … 3294 3294 foreach ( $results as $result ) { 3295 3295 if ( 'critical' === $result['status'] ) { 3296 $site_status['critical']++;3296 ++$site_status['critical']; 3297 3297 } elseif ( 'recommended' === $result['status'] ) { 3298 $site_status['recommended']++;3298 ++$site_status['recommended']; 3299 3299 } else { 3300 $site_status['good']++;3300 ++$site_status['good']; 3301 3301 } 3302 3302 }
Note: See TracChangeset
for help on using the changeset viewer.