Skip to content

Commit 478a5ab

Browse files
Site Health: Set missing $transient in WP_Debug_Data:get_wp_themes_inactive().
This commit addresses a bug where the `update_themes` site transient was not defined before being checked in several `isset()` checks later on in the method. Follow-up to [59176]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60181 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2e4be8b commit 478a5ab

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/wp-admin/includes/class-wp-debug-data.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,7 @@ private static function get_wp_themes_inactive(): array {
13001300
$active_theme = wp_get_theme();
13011301
$parent_theme = $active_theme->parent();
13021302
$theme_updates = get_theme_updates();
1303+
$transient = get_site_transient( 'update_themes' );
13031304

13041305
$auto_updates = array();
13051306
$auto_updates_enabled = wp_is_auto_update_enabled_for_type( 'theme' );

0 commit comments

Comments
 (0)