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.
Built from https://develop.svn.wordpress.org/trunk@60181


git-svn-id: http://core.svn.wordpress.org/trunk@59517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2025-04-24 12:49:30 +00:00
parent 4e3cca4095
commit d1c676b3a4
2 changed files with 2 additions and 1 deletions

View File

@@ -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' );

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.9-alpha-60180';
$wp_version = '6.9-alpha-60181';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.