From 478a5ab5805e67524841913db5aa8bc1228dcf46 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 24 Apr 2025 12:47:18 +0000 Subject: 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 --- src/wp-admin/includes/class-wp-debug-data.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-admin/includes/class-wp-debug-data.php b/src/wp-admin/includes/class-wp-debug-data.php index 2cedc33836..cbb57a4b8c 100644 --- a/src/wp-admin/includes/class-wp-debug-data.php +++ b/src/wp-admin/includes/class-wp-debug-data.php @@ -1300,6 +1300,7 @@ class WP_Debug_Data { $active_theme = wp_get_theme(); $parent_theme = $active_theme->parent(); $theme_updates = get_theme_updates(); + $transient = get_site_transient( 'update_themes' ); $auto_updates = array(); $auto_updates_enabled = wp_is_auto_update_enabled_for_type( 'theme' ); -- cgit v1.2.3