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:
@@ -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' );
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user