Commit d1c676b3a4 for wordpress.org
commit d1c676b3a4d921f566bf1a4cd29bff1ac1ea8625
Author: Sergey Biryukov <sergeybiryukov.ru@gmail.com>
Date: Thu Apr 24 12:49:30 2025 +0000
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
diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php
index 2cedc33836..cbb57a4b8c 100644
--- a/wp-admin/includes/class-wp-debug-data.php
+++ b/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' );
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 28900a3b95..a6879ef1d6 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -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.